ltib not compiling

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ltib not compiling

2,877 Views
AlexanderKelle1
Contributor II

I am having trouble getting ltib to compile. When I run ltib I get this error 

 

ltib cannot be run because one or more of the host packages needed to run itare either missing or out of date or not in ltib's standard path.  Pleaseinstall/upgrade these packages on your host.  If you have your own utilitiesin 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

rpm                       0             not installed

rpm-build                0             not installed

ncurses-devel         0             not installed

 

Died at ./ltib line 1397.traceback: main::host_checks:1397  main:542

Started: Thu Nov 10 20:42:17 2011Ended:   Thu Nov 10 20:42:20 2011Elapsed: 3 seconds

Build Failed

I have installed zlib from the zlib website, but ltib stills said that zlib has not been installed. I think the issue is that tlib is looking in  a default directory for the zlib files but that directory is not where I installed zlib. I was just wondering if anyone knows how to change the directory where tlib looks for the zlib files. 

 

Thanks for your help. 

Tags (1)
0 Kudos
Reply
15 Replies

1,919 Views
AdCmo
Contributor III

Thank you Don and John,

I had to edit ltib/bin/Ltibutils.pm

See similar post at:

http://forums.freescale.com/t5/i-MX-Microprocessors/i-MX51-LTIB-Ubuntu-11-04-x86-64-glibc-devel/td-p...

and the LTIB patch at:

http://lists.nongnu.org/archive/html/ltib/2011-07/txtB5I18k25M7.txt

 

Now I am off to another problem:

"Exiting on error or interrupt
Please see >> /opt/freescale/ltib/host_config.log for details"

Which is:

pmdb: --force-debian: unknown option
Died at ./ltib line 2340.
traceback:
 main::setup_rpmdb:2340
  main::check_rpm_setup:2403
   main::host_checks:1423
    main:542

 

Ad.

--------------------------------

0 Kudos
Reply

1,919 Views
JohnReed
Contributor I

My ubuntu release is pretty stock 10.04 LTS.   I've only added stuff needed to build for QSB.

 

I have a "/usr/lib/i486-linux-gnu" directory, and I only have a couple of files in there:

 

root@ubserver:/usr/lib/i486-linux-gnu# ls -las
total 164
4   drwxr-xr-x       2      root root   4096 2011-11-12 14:04 .
72 drwxr-xr-x    221      root root 69632 2011-11-15 13:15 ..
0   lrwxrwxrwx     1      root root      17 2011-11-12 14:04 liblouis.so.0 -> liblouis.so.0.2.5
88 -rw-r--r--           1      root root 83820 2010-01-17 23:14 liblouis.so.0.2.5
root@ubserver:/usr/lib/i486-linux-gnu#

Both my libz.a and libz.so were installed to /usr/lib

 

I'd try a couple of things:

     1.   Uninstall zlib1g-dev, and then re-install to see if that makes a difference

     2.   use ln -s to create /usr/lib/libz.a and /usr/lib/libz.so, and re-compile to see if it is still choking on zlib stuff

 

JR

0 Kudos
Reply

1,919 Views
Don_ng
Contributor I

You have to fix Ltibutils.pm

0 Kudos
Reply

1,919 Views
AdCmo
Contributor III

John,

Here is what I found:

/usr/lib/i386-linux-gnu/libz.a
/usr/lib/i386-linux-gnu/libz.so -> /lib/i386-linux-gnu/libz.so.1.2.3.4

and

/usr/include/zconf.h
/usr/include/zlibdefs.h
/usr/include/zlib.h


Maybe I need to modify the path of where LTIB finds the libraries?
Any clue how I add these paths to LTIB paths?

I didn't see "%path_std" in .ltibrc
The only path I see is "%bin_path", which is commented out.

Ad.
---------------------------

0 Kudos
Reply

1,919 Views
JohnReed
Contributor I

I did not mean re-installing ltib, I just meant re-compiling using ltib.....thinking maybe the needed files from zlib are really there.

So when you execute ltib to perform the re-compile, does it still complain that it can't find zlib, even though you've installed it??      I guess that question is the heart of the problem.

The other thing you could do is go to the directories where some of the files from zlib-dev are supposed to be, and see if they're actually there.     Here's a partial list, and it's probably the .h files that are most important.

 

/usr/include/zconf.h
/usr/include/zlib.h
/usr/include/zlibdefs.h
/usr/lib
/usr/lib/libz.a
/usr/lib/libz.so

 

If those files aren't there, then perhaps the package really didn't get installed properly.

 

JR



Ad said:

John,

By this "...Why not just retry compiling using ltib,..."

Do you mean re-installing LTIB?

Thanks,

Ad.

--------------------

John Reed said:

 

 

This sorta goes back to the issue of compiling with ltib.        When I did the 1st compile, ltib complained that I did not have several packages installed.    There were about 5 that I didn't have installed.

 

However, it did not complain about the zlib packages.     Instead, wayyyyy down the compile train, I got a compile error on some particular file when it could not find file lzo1x.h.

So not a peep from ltib on the missing package, but eventually choked on the missing file.      I installed the zlib1g-dev package, then compiled and then I was on to tracking down my next problem.

So ltib should not complain about a missing zlib package.

Why not just retry compiling using ltib, and if you get past the compile error (not finding lzo1x.h), then you're fine.

 

JR

 

 

 



Ad said:

JR,

 

Maybe I was not clear, I already installed the following packages via

apt-get and tried with aptitude.

i.e.

zlib1g,

zlib1g-dbg,

zlib1g-dev and

libghc-zlib-dev

 

Ad.

-----------------------

0 Kudos
Reply

1,919 Views
JohnReed
Contributor I

Just realized I was thinking about an altogether different problem.    The lzo1x.h file I'm referring to below has to do with the liblzo2-dev package, and has nothing to do with zlib.    Sorry 'bout that.

 

JR


Ad said:

JR,

 

Maybe I was not clear, I already installed the following packages via

apt-get and tried with aptitude.

i.e.

zlib1g,

zlib1g-dbg,

zlib1g-dev and

libghc-zlib-dev

 

Ad.

-----------------------

0 Kudos
Reply

1,919 Views
AdCmo
Contributor III

John,

By this "...Why not just retry compiling using ltib,..."

Do you mean re-installing LTIB?

Thanks,

Ad.

--------------------

John Reed said:

 

 

This sorta goes back to the issue of compiling with ltib.        When I did the 1st compile, ltib complained that I did not have several packages installed.    There were about 5 that I didn't have installed.

 

However, it did not complain about the zlib packages.     Instead, wayyyyy down the compile train, I got a compile error on some particular file when it could not find file lzo1x.h.

So not a peep from ltib on the missing package, but eventually choked on the missing file.      I installed the zlib1g-dev package, then compiled and then I was on to tracking down my next problem.

So ltib should not complain about a missing zlib package.

Why not just retry compiling using ltib, and if you get past the compile error (not finding lzo1x.h), then you're fine.

 

JR

 

 

 



Ad said:

JR,

 

Maybe I was not clear, I already installed the following packages via

apt-get and tried with aptitude.

i.e.

zlib1g,

zlib1g-dbg,

zlib1g-dev and

libghc-zlib-dev

 

Ad.

-----------------------

0 Kudos
Reply

1,919 Views
JohnReed
Contributor I

This sorta goes back to the issue of compiling with ltib.        When I did the 1st compile, ltib complained that I did not have several packages installed.    There were about 5 that I didn't have installed.

 

However, it did not complain about the zlib packages.     Instead, wayyyyy down the compile train, I got a compile error on some particular file when it could not find file lzo1x.h.

So not a peep from ltib on the missing package, but eventually choked on the missing file.      I installed the zlib1g-dev package, then compiled and then I was on to tracking down my next problem.

So ltib should not complain about a missing zlib package.

Why not just retry compiling using ltib, and if you get past the compile error (not finding lzo1x.h), then you're fine.

 

JR

 

 

 



Ad said:

JR,

 

Maybe I was not clear, I already installed the following packages via

apt-get and tried with aptitude.

i.e.

zlib1g,

zlib1g-dbg,

zlib1g-dev and

libghc-zlib-dev

 

Ad.

-----------------------

0 Kudos
Reply

1,919 Views
AdCmo
Contributor III

JR,

 

Maybe I was not clear, I already installed the following packages via

apt-get and tried with aptitude.

i.e.

zlib1g,

zlib1g-dbg,

zlib1g-dev and

libghc-zlib-dev

 

Ad.

-----------------------

0 Kudos
Reply

1,919 Views
JohnReed
Contributor I

The package you need is named:    zlib1g-dev

I installed it using the synaptic pkg manager.

 

Or try this manually:    apt-get install zlib1g-dev

 

Put in zlib1g-dev into google.   Here's a good link:    http://packages.ubuntu.com/lucid/zlib1g-dev

 

 

JR



Ad said:

How did you get zlib installed?

I having an issue where it says zlib package not installed.
I installed all the zlib1* packages as well in vain.

For some reason, aptitude cannot find zlib-devel when i do a search.
So, how were you able to install "zlib"?

 

Thanks,

Ad.

 

0 Kudos
Reply

1,919 Views
JohnReed
Contributor I

The package you need is named:    zlib1g-dev

I installed it using the synaptic pkg manager.

 

Or try this manually:    apt-get install zlib1g-dev

 

JR

0 Kudos
Reply

1,919 Views
AdCmo
Contributor III

How did you get zlib installed?

I having an issue where it says zlib package not installed.
I installed all the zlib1* packages as well in vain.

For some reason, aptitude cannot find zlib-devel when i do a search.
So, how were you able to install "zlib"?

 

Thanks,

Ad.

0 Kudos
Reply

1,919 Views
AlexanderKelle1
Contributor II

I got zlib to install on my machine, but I am I still having trouble on compiling ltib. When I try to compiling ltib I get this error: 

Exiting on error or interruptPlease see >> /home/alexander/Desktop/MX53_setup/ltib/host_config.log for details 

 

Here is the log output: 

rpmdb: --force-debian: unknown

optionDied at ./ltib line 2340.

traceback: main::setup_rpmdb:2340 

main::check_rpm_setup:2403   

main::host_checks:1423   

main:542

Started: Fri Nov 11 14:14:20 2011Ended:   Fri Nov 11 14:14:20 2011Elapsed: 0 seconds

Build Failed

 

 

 

And here is line 2340 in my ltib file:

Press <enter to continue>

TXT           

             local $_ = <STDIN>;           

             touch($cf->{rpmdb_nfs_warning});       

                 } 

       }
    # initialise the target's rpm database directory if not done before 

  # otherwise rebuilt it if the target has run and altered it.  

This    # is needed as I think different endianesses store data differently 

  # so a rpm database build on an x86 host is not readable on a ppc   

# machine until you run rpm --rebuilddb, similarly once that's

been    # done you can no longer read it properly on an x86 machine   

my $do_rebuild = 1 unless -e "$cf->{rpmroot}/$cf->{tmppath}";   

system_nb("mkdir -p $cf->{rpmroot}/$cf->{tmppath}");
    if(! -e "$cf->{rpmroot}/$cf->{rpmdb}/Packages") {       

           system_nb(<<TXT) == 0 or die;

     system_nb(<<TXT) == 0 or die; (this is line 2340)

 

 

 



John Reed said:

 

I've got 2 different ubuntu machines I'm compiling on.    On both machines I have these 2 packages installed:

 

    - zlib1g

    - zlib1g-dev

 

Make sure you've got both of those installed via the synaptic package manager, and then I think you'll be OK.

 

As a forewarning, you're also going to need these 2 packages:

 

     - liblzo2-dev

     - uuid-dev

 

Happy Hacking!!

 

JR

0 Kudos
Reply

1,919 Views
daiane_angolini
NXP Employee
NXP Employee

Please, double check if your machine is OK for LTIB instalation:

http://www.imxdev.org/wiki/index.php?title=All_Boards_LTIB

 

I know there is some "trick" for Ubuntu 04.11 and 10.11, and I know it was already discussed and fixed on imxcommunity.

 

Can you, please, find those discussion and post the link over here?

0 Kudos
Reply

1,919 Views
JohnReed
Contributor I

I've got 2 different ubuntu machines I'm compiling on.    On both machines I have these 2 packages installed:

 

    - zlib1g

    - zlib1g-dev

 

Make sure you've got both of those installed via the synaptic package manager, and then I think you'll be OK.

 

As a forewarning, you're also going to need these 2 packages:

 

     - liblzo2-dev

     - uuid-dev

 

Happy Hacking!!

 

JR

0 Kudos
Reply