I have similar problems. LTIB build process fails under the latest UBUNTU version installed on a virgin machine, after having installed lots of missing packages manually, I am stuck with the rpm-fs and texinfo packages that are not compiled.
The configuration files, make process etc. are very opaque to me, so I am stuck.
Is there a way to get a precompiled LTIB for Ubuntu somewhere?
Hi,
One of the reasons that ltib fails to install on Ubuntu is the rpm package. Ubuntu has a patched version of rpm with a different behavior than what you get in Fedora. Mainly it will refuse to install any package unless you give it "--force-debian" flag. Even then, you might get into other problems.
On a clean installation, the error message is:
mkdir: cannot create directory `/opt/freescale': Permission denied
However, before that is another message that hints to the problem:
rpm: please use alien to install rpm packages on Debian, if you are really sure use --force-debian switch. See README.Debian for more details.
The solution is to remove Ubuntu's rpm package together with rpm-dev and install it from source. Follow instructions from the rpm INSTALL file and then run:
$ ./ltib
as instructed in the ltib documentation
For example:
$ ./configure CPPFLAGS="-I/usr/include/nspr -I/usr/include/nss" --with-external-db --without-lua
$ make
$ make install
$ ldconfig #to update the include paths
rpm will be installed in /usr/local/bin so you must update also the sudoers file.
Best regards
Thank you very much for the hint!
Regards,
Xulio.
There is one more thing to do, as noted above bytachikoma:
Replace sh with bash. Ubuntu uses for some time dash as the default shell and it doesn't work with ltib.
Just do:
$ sudo ln -sf /bin/bash /bin/sh
and everything should be OK.
If you still have compilation problems, remove everything installed by ltib and start over.
Best regards
Commenting
#if [ "`uname -m`" != "x86_64" ]
#then
# export LD_ASSUME_KERNEL=2.2.5
#fi
in dist/lfs-5.1/rpm/rpm-fs.spec
worked for me using ubuntu 9.04
Good luck!