LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   error chapter 5.23 LFS book 6.6 (http://www.linuxquestions.org/questions/linux-from-scratch-13/error-chapter-5-23-lfs-book-6-6-a-802537/)

charlie_lab 04-17-2010 07:49 AM

error chapter 5.23 LFS book 6.6
 
Hello,

I try to do the make install of this chapter and get this error :

make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/mnt/lfs/sources/gzip-1.4/lib'
make[3]: Leaving directory `/mnt/lfs/sources/gzip-1.4/lib'
make[2]: Leaving directory `/mnt/lfs/sources/gzip-1.4/lib'
make[1]: Leaving directory `/mnt/lfs/sources/gzip-1.4/lib'
Making install in doc
make[1]: Entering directory `/mnt/lfs/sources/gzip-1.4/doc'
make[2]: Entering directory `/mnt/lfs/sources/gzip-1.4/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/tools/share/info" || /bin/mkdir -p "/tools/share/info"
/bin/mkdir: cannot create directory `/tools': Permission denied
make[2]: *** [install-info-am] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gzip-1.4/doc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gzip-1.4/doc'
make: *** [install-recursive] Error 1


What went wrong ?

Roelof

deadeyes 04-17-2010 08:01 AM

Code:

/bin/mkdir: cannot create directory `/tools': Permission denied
permission denied. You probably did this as a normal user instead of the root user.

Do note that LFS is not really easy to get going.
And after installation you should still do all package management yourself.
Maybe you should look at Gentoo(It depends on what you actually want to accomplish with this)?

Have fun:)

charlie_lab 04-17-2010 08:12 AM

Hello,

I don't think that's the problem.
Im sure that I did su - lfs.

I looked at Gentoo and it's a good system but also can be easily messed up.
And on some parts like Xorg and Gnome there are behind LFS.

Roelof

crts 04-17-2010 09:22 AM

Quote:

/bin/mkdir: cannot create directory `/tools': Permission denied
/tools should be a symlink to $LFS/tools at this point. So it should not try to create /tools.
In addition check, if you issued the chown at the beginning of chapter 5 correctly, i.e.
chown -R lfs:lfs /tools

CORRECTION:
The command
chown -v lfs $LFS/tools
is issued in chapter 4.3. Since it is an empty directory at this point there is no need to chown it recursively.

charlie_lab 04-17-2010 11:15 AM

HEllo crts,

You solved it.
It seems that the simlink was not right.

Roelof

deadeyes 04-18-2010 06:06 AM

Just a remark:
su - lfs
This does not make you root user but user "lfs".
So this user might not have proper rights to write to /tools.
However I can not guess what dir you actually had to put it :) (It was a long time ago since I tried lfs)

Quote:

I looked at Gentoo and it's a good system but also can be easily messed up.
And on some parts like Xorg and Gnome there are behind LFS.
I think that is bit of a misunderstanding from your part.
Probably you will more easily mess up your system when there is no package management, all manually ./configure, ...
Xorg and Gnome are not behind actually. You can easily install later version than the one marked as "stable". You can also use experimental stuff or compile from cvs or subversion and so have the latest build.

Have fun!


All times are GMT -5. The time now is 02:01 AM.