LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 7.2 - Chapter 6.9.2 - zic: Can't open sh yearistype.sh (http://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-7-2-chapter-6-9-2-zic-cant-open-sh-yearistype-sh-4175447157/)

anjohn 01-25-2013 07:18 AM

LFS 7.2 - Chapter 6.9.2 - zic: Can't open sh yearistype.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.

After
Code:

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/yearistype.sh" ${tz};
zic -L /dev/null -d $ZONEINFO/posix -y "sh /sources/7.2/glibc-build/yearistype.sh" ${tz};
zic -L leapseconds -d $ZONEINFO/right -y "sh /sources/7.2/glibc-build/yearistype.sh" ${tz}; done

I get
Code:

zic: Can't open sh /sources/7.2/glibc-build/yearistype.sh: 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 yearistype.sh" it recognizes the file.
I also set the executable bit ...

WTF??

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?

Code:

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



All times are GMT -5. The time now is 08:10 AM.