-   Linux From Scratch (
-   -   LFS 7.2 - Chapter 6.9.2 - zic: Can't open sh (

anjohn 01-25-2013 07:18 AM

LFS 7.2 - Chapter 6.9.2 - zic: Can't open sh
Hello folks,

thank you very much for your help until now!

I am trying to install the time zone data in chapter 6.9.2.


root:/sources/7.2/glibc-build# for tz in etcetera southamerica northamerica europe africa antarctica asia australasia backward pacificnew solar87 solar88 solar89 systemv; do
zic -L /dev/null -d $ZONEINFO -y "sh /sources/7.2/glibc-build/" ${tz};
zic -L /dev/null -d $ZONEINFO/posix -y "sh /sources/7.2/glibc-build/" ${tz};
zic -L leapseconds -d $ZONEINFO/right -y "sh /sources/7.2/glibc-build/" ${tz}; done

I get

zic: Can't open sh /sources/7.2/glibc-build/ No such file or directory
several times.

I tried relative and also absolute paths for the file. The strange thing is that the file exists in my glibc-build folder. When I type "sh" it recognizes the file.
I also set the executable bit ...


anjohn 01-25-2013 09:02 AM

Okay when the variable ZONEINFO is not set, one gets this error. Strange world and why was the variable not set ...
echo $TIMEZONE was empty

druuna 01-25-2013 09:09 AM

Why don't you just follow the book?


"sh /sources/7.2/glibc-build/"

All times are GMT -5. The time now is 10:40 PM.