All,
I am frustrated that this zlib issue is still not uniformly resolved.
I am trying to install this on a 32-bit Ubuntu 11.10 and I am still getting the
"zlib 0 not installed" error below:
I checked my Ltibutils.pm and is shows the correct "libz.so" and "libz.h" paths
as pasted below. I was able to see the actual files at "/usr/lib/i386-linux-gnu/"
and "/usr/include/" respectively.
Please let me know what else I need to check to make the zlib issue go away.
Ad.
------------------
zlib => sub { my @f = (glob('/usr/lib/libz.so*'),
glob('/lib/libz.so*'),
glob('/lib64/libz.so*'),
glob('/usr/lib/i386-linux-gnu/libz.so*'),
glob('/usr/lib32/libz.so*'),
glob('/usr/lib/x86_64-linux-gnu/libz.so*') ); @f > 1 ? 1 : 0 },
'zlib-devel' => sub { -f '/usr/include/zlib.h' },
----------------------------------------------------ERROR DUMP BELOW----------------------------------------------------
~/imx53/11.09.01/ltib$ ./ltib
ltib cannot be run because one or more of the host packages needed to run it
are either missing or out of date or not in ltib's standard path. Please
install/upgrade these packages on your host. If you have your own utilities
in non-standard paths, please add an entry into the .ltibrc file for example:
%path_std
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/my/own/exes
Package Minimum ver Installed info
------- ----------- ---------------
zlib 0 not installed
Died at ./ltib line 1397.
traceback:
main::host_checks:1397
main:542
Started: Sun May 20 22:40:49 2012
Ended: Sun May 20 22:40:49 2012
Elapsed: 0 seconds
Build Failed
Exiting on error or interrupt
----------------------------------------------END ERROR DUMP----------------------------------------------------
Curtis Wald said:
Hi Antony,
Just create a link:
$ sudo ln -s /usr/include/i386-linux-gnu/sys /usr/include/sys
You will then need to delete the elftosb directory and run ltib which should result in a complete build.
-Curtis
Antony Burton said:
Hi,
Thanks for this well written step through - I was just saying to myself -"All is going so well" when I started having problems:
1) Ltib complained it couldn't find zlib package. I couldn't find this packge (only zlib-devel) so I deleted the line zlib 0 in the string pre_install_deps (line 92) to avoid the verification. This seemed to work, then an error occured with elftosb package (host_config.log):
In file included from /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/AESKey.h:10:0,
from /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/AESKey.cpp:8:
/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/stdafx.h:30:36: fatal error: /usr/include/sys/types.h: No such file or directory
compilation terminated.
make[1]: *** [AESKey.o] Error 1
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/bld/linux'
make: *** [all] Error 2
error: Bad exit status from /home/antony/imx53/11.09.01/ltib/tmp/rpm-tmp.23263 (%build)
RPM build errors:
Bad exit status from /home/antony/imx53/11.09.01/ltib/tmp/rpm-tmp.23263 (%build)
Build time for elftosb: 1 seconds
Failed building elftosb
Apparently the file types.h is located at /usr/include/i386-linux-gnu/sys/types.h
What is the best solution? How come I get this error and not you?
Thanks for your help,
Antony