LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-11-2002, 12:31 AM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
/usr/bin/ginstall doesn't exist


Hi. Thanks for helping me this far ;)

So, I ran into this problem with a recent CVS attempt, but I tossed it aside and blamed it on CVS. Waited for a new release, or a newer CVS to come out, and now I am trying 4 and this is still happening. I probably missed another step, but can't figure out what. I did install fileutils in Chapter 5, so I don't think that's the problem, even though from my ls /usr/bin I can't see a install executable file.

Anyway, here I am, in Chap 6, on gawk. Here's the last few lines including the error. Any help would be awesome. Thanks.

Code:
make[2]: Entering directory `/usr/src/sources/gawk-3.1.1'
/bin/sh ./mkinstalldirs /usr/bin
  /usr/bin/ginstall -c gawk /usr/bin/gawk
/bin/sh: /usr/bin/ginstall: No such file or directory
  /usr/bin/ginstall -c pgawk /usr/bin/pgawk
/bin/sh: /usr/bin/ginstall: No such file or directory
make[2]: *** [install-binPROGRAMS] Error 127
make[2]: Leaving directory `/usr/src/sources/gawk-3.1.1'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/usr/src/sources/gawk-3.1.1'
make: *** [install-recursive] Error 1
root:/usr/src/sources/gawk-3.1.1# ls /usr/bin
c++        gcc      glibcbug               lddlibc4       rpcgen
c++filt    gccbug   i686-pc-linux-gnu-c++  locale         sprof
catchsegv  gcov     i686-pc-linux-gnu-g++  localedef      tzselect
cc         gencat   i686-pc-linux-gnu-gcc  mtrace         xtrace
cpp        getconf  iconv                  pcprofiledump
g++        getent   ldd                    pt_chown
Thanks
 
Old 10-11-2002, 01:02 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 68
Ok, well after a little thought, and this time not blaming the package I think I might have an idea...

When I first install Chap 5, I am unpriviledged. I set the 'export LFS=/mnt/lfs' variable for this unpriviledged user (lfs). I go through the install, step by step. Ok, so now I at the end of Ch 5. I need to chroot using root to go onto chap 6, but in doing so, I also set my LFS variable, because I am that lazy I think this is where my problem starts maybe? Unless someone gives me a better idea, or tells me that this guess is wrong, then tomorrow I am going to go back to the beginning of chapter six, this time NOT set the variable, and see how things go.

Gerard, I went to the mail lists for this, and in doing so came upon a thread about a post Ch5 script to check if everything is as it should be. This would be great for people like me who don't know where to go back to. If I screwed something up, but it wasn't in Ch5, then I have a point to go back to rather than rm -r /mnt/lfs/* and start all over. Anyway, my 2 cents on that.

Cool
 
Old 10-12-2002, 11:32 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 68
No luck guys

Anyone got a suggestin?

I would like to give your guys ideas a try too, I don't know if I am missing something or what...

Anyway, I'll keep you all posted if I don't hear anything...

Cool
 
Old 10-14-2002, 04:18 AM   #4
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
Just a thought but you do run the patch to gawk first right? Setting the LFS variable shouldn't make any difference in chapter 6 as you never actually use. The reason for chrooting in is so that the LFS directory becomes root.

You could also chroot in and perform a search to find ginstall. Try
Code:
find /usr ginstall

Last edited by CragStar; 10-14-2002 at 04:25 AM.
 
Old 10-14-2002, 11:43 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 68
Thanks for the suggestion CragStar, and I do believe that I did install the patch, but tried again and still no dice. ginstall I guess is just a symlink from my readings to install, which is installed during fileutils, so I check that to make sure it was installed as well. Don't know what else to try, but I do thank you for the suggestion nonetheless, as it was something anway


root:/# find /usr/ginstall
find: /usr/ginstall: No such file or directory
root:/#


Cool
 
Old 10-14-2002, 02:34 PM   #6
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
I don't know MC...

1) I think that the find command that craigstar recommended was "find /usr ginstall" with a space after "/usr" that'll invoke find ginstall for only the /usr part of your tree.... wait a minute... I don't have "ginstall" anywhere on my system... maybe I missed something too. what package is that part of? i just checked if it is from gawk, and it's not.

shute, I just read through your post again, and it looks like you're on gawk? libtool is way after that..... I'll get back if I can think of anything else...

2) I was just doing a little searching around on google w/ your errors, and I saw some stuff about missing the libtool package? you might wanna check that.

3)ok... I just checked through every package in ch.6 in cvs, and I can't find ginstall anywhere... maybe I missed it, but maybe it just doesn't need it (it checks if you have it but not a dependancy)
 
Old 10-14-2002, 05:54 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 68
Ok, I tried that as well (thanks for clarifying that for me) and it returned a search on the entire /usr folder, but finally returned with a no file or directory...

ginstall is, I believe simply a symlink to install, so... I searched for that as well, but still nothing

install is part of fileutils, which doesn't get installed in Chap 6 until after gawk, but it should have installed install from ch5

I am going to start over again, and go slowly, and thoroughly, I went pretty fast thinking that I knew everything since I had done this before huh huh, arrogance usually causes most of my problems

Anyway, if I get to this point and this happens again, I'll let you all know.

Thanks for the suggestions, and ideas.

Cool
 
Old 10-19-2002, 12:57 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 68
So I never got it figured out really, but I found a way around rather... I haven't completely completed my project yet, so I don't know if it worked for sure...

So, when I would install fileutils in ch5, it would place the install program into /static/usr/bin since this is not where programs are looking for install, rather they are looking in /usr/bin I simply symlinked it from /static/usr/bin to /usr/bin/ginstall since ginstall is just a symlink of install anyway.

And it hasn't given me any problems so far

Anyway, yeah, so now it appears it's working, but I am wondering why nobody else has reported having to do this, and if they didn't, what could I have missed?

Thanks
 
Old 10-19-2002, 04:54 PM   #9
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
It should be looking in /static/bin I think. when you "enter the chroot environment" this command:

chroot $LFS /static/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
/static/bin/bash --login

puts /static/bin in your path. what does "echo $PATH" give you?

Thats the only thing I can think of.....

good luck

-Adam
 
Old 10-19-2002, 05:04 PM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 68
Maybe that is my problem, I will check that first chance I get (I am working the duty today, so I won't be home til later). Thanks for the suggested idea..

Cool
 
Old 10-20-2002, 01:16 PM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 68
Must have been the problem

Very nice catch Adam! I am ashamed of me self

I finally got my LFS 4.0 system booted, no problems there. Now here I go starting from scrach

Oh, btw, I went BSD style init scripts, gotta love em

Cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
Webmin: The Apache server executable /usr/local/apache2/bin does not exist hektor Linux - Software 0 01-14-2005 06:48 AM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration