[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Ltib] freescale ltib config problem
From: |
Yin Olivia-R63875 |
Subject: |
RE: [Ltib] freescale ltib config problem |
Date: |
Mon, 30 Nov 2009 09:01:48 +0800 |
Hi Giorgio,
Our workaround for installing LTIB on Ubuntu 9.10 include following
steps.
1. mkdir /opt/freescale and chmod 777
2. apt-get install autoconf (for texinfo)
3. ln -s /bin/bash /bin/sh (for dtc)
4. change ltib: line 925: (for rpm-fs)
# install the new package
$cmd = "$cf->{sudo} $cf->{rpm} ";
$cmd .= "--root $cf->{rpmroot} ";
$cmd .= "--dbpath $cf->{rpmdb} ";
$cmd .= "--prefix $cf->{rpmipfx} " if $cf->{rpmipfx};
$cmd .= "--ignorearch -ivh ";
$cmd .= "--force " unless $cf->{conflicts} ||
$cf->{hostinst};
$cmd .= "--replacepkgs --replacefiles " if $cf->{hostinst};
$cmd .= "--nodeps " if $cf->{nodeps};
$cmd .= "--excludedocs ";
+ $cmd .= "--force-debian " if $cf->{rpm} eq 'rpm';
$cmd .= "--define '_tmppath $cf->{tmppath}' ";
$cmd .= "$rpm";
Maybe you could try again.
Best Regards,
Olivia
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Ing. Giorgio Marinangeli
> Sent: Wednesday, November 25, 2009 9:53 PM
> To: address@hidden
> Subject: Re: [Ltib] freescale ltib config problem
>
> Thanks Yunlong and Stuart for your suggestions,
>
>
> > Which version of LTIB is this (the name of the ISO)?
>
> I downloaded the TLIB directly freescale web site ad tarball archive.
> It should be a special issue for freescale iMx processor.
>
> I found the solution for the problem explained on my previous E-Mail.
>
> I used this commands to rebuild rpm database:
>
> su -
> rm -rf /var/lib/rpm/*__db
> rpm --rebuilddb
>
> also i need to change the install scrip provided with this
> TLIB freescale version.
>
>
>
> Thank.
> Giorgio
>
>
>
>
>
>
> Il giorno mer, 25/11/2009 alle 08.51 +0000, Stuart Hughes ha scritto:
> > Hi Giorgio,
> >
> > Which version of LTIB is this (the name of the ISO)? It may be an
> > issue with an older version. The current version on
> Savannah CVS is
> > known to work with Ubuntu 9.10 provided you have rpm
> correctly installed on the host.
> >
> > The actual failure looks as though the rpm database for the
> host has
> > not been initialised and/or you don't have sudo permissions. First
> > make sure you have sudo permissions (without password)
> enabled for rpm
> > as should be prompted for when you first run ltib. Then
> you could try
> > running 'sudo rpm --initdb' (warning this may destroy your host rpm
> > database, but on Ubunutu this probably doesn't matter for you). If
> > you do that, remove /tmp/rpm* and re-try.
> >
> > Maybe Freescale can help with this specific version of LTIB.
> >
> > Regards, Stuart
> >
> > Ing. Giorgio Marinangeli wrote:
> > > Hi,
> > >
> > > I am very new to LTIB.
> > >
> > > I tried to install and configure ltib [freescale vesion]
> on my host
> > > PC with Ubuntu 9.10.
> > >
> > > When I try to build for the first time ltib using ./ltib
> - m config
> > > command ( I follow the freescale documentation ) I always get an
> > > error and the compile process stopped.
> > >
> > >
> > > This is the error decribed on host_config.log file:
> > >
> > >
> > > [..]
> > >
> > > librt.so.1(GLIBC_2.1) libz.so.1 perl(Archive::Tar) perl(CGI)
> > > perl(Data::Dumper) perl(File::Basename) perl(File::Copy)
> > > perl(File::stat) perl(Getopt::Long) perl(POSIX) perl(Specfile)
> > > perl(Sys::Hostname) perl(lib) perl(strict) perl(vars)
> Checking for
> > > unpackaged
> > > file(s): /usr/lib/rpm/check-files
> > > /tmp/rpm-giorgio/BUILDROOT/rpm-fs-4.0.4-1.i386
> > > Wrote: /tmp/rpm-giorgio/RPMS/i686/rpm-fs-4.0.4-1.i686.rpm
> > > Executing(%clean): /bin/sh -e
> > > /home/giorgio/ltib/ltib/tmp/rpm-tmp.tSBxjx
> > > + umask 022
> > > + cd /tmp/rpm-giorgio/BUILD
> > > + cd rpm-4.0.4
> > > + rm -rf /tmp/rpm-giorgio/BUILDROOT/rpm-fs-4.0.4-1.i386
> > > + exit 0
> > > Executing(--clean): /bin/sh
> > > -e /home/giorgio/ltib/ltib/tmp/rpm-tmp.L6hEI0
> > > + umask 022
> > > + cd /tmp/rpm-giorgio/BUILD
> > > + rm -rf rpm-4.0.4
> > > + exit 0
> > > Build time for rpm-fs: 339 seconds
> > >
> > > error: cannot open Name index using db3 - No such file or
> directory
> > > (2)
> > > error: cannot open Name index using db3 - No such file or
> directory
> > > (2) sudo rpm --root / --dbpath /tmp/rpm-giorgio/rpmdb -e
> > > --allmatches --nodeps --define '_tmppath
> > > /home/giorgio/ltib/ltib/tmp' rpm-fs
> > > 2>/dev/null
> > > sudo rpm --root / --dbpath /tmp/rpm-giorgio/rpmdb
> --ignorearch -ivh
> > > --force --nodeps --excludedocs --define '_tmppath
> > > /home/giorgio/ltib/ltib/tmp'
> > > /tmp/rpm-giorgio/RPMS/i686/rpm-fs-4.0.4-1.i686.rpm
> > > 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.
> > > sudo /opt/freescale/ltib/usr/bin/rpm --root / --dbpath
> > > /opt/freescale/ltib/var/lib/rpm -Uv --justdb --notriggers
> > > --noscripts --nodeps
> > > /tmp/rpm-giorgio/RPMS/i686/rpm-fs-4.0.4-1.i686.rpm
> > > sudo: /opt/freescale/ltib/usr/bin/rpm: command not found
> > > mkdir: cannot create directory `/opt/freescale': Permission denied
> > >
> > > Cannot create the download directory:
> > > /opt/freescale/pkgs
> > >
> > > Either change to a global directory you have write
> permissions to,
> > > or create it as root. Please set the permissions to 777
> > >
> > > traceback:
> > > main::check_dirs:2469
> > > main::host_checks:1426
> > > main:542
> > >
> > >
> > > Any suggestion?
> > >
> > > Best Regards
> > >
> > > Giorgio
> > >
> > >
> > >
> > > _______________________________________________
> > > LTIB home page: http://ltib.org
> > >
> > > Ltib mailing list
> > > address@hidden
> > > http://lists.nongnu.org/mailman/listinfo/ltib
> > >
> >
>
>
>
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
>
>
- [Ltib] freescale ltib config problem, Ing. Giorgio Marinangeli, 2009/11/25
- Re: [Ltib] freescale ltib config problem, Stuart Hughes, 2009/11/25
- Re: [Ltib] freescale ltib config problem, Ing. Giorgio Marinangeli, 2009/11/25
- Re: [Ltib] freescale ltib config problem, Hamilton Vera, 2009/11/27
- RE: [Ltib] freescale ltib config problem,
Yin Olivia-R63875 <=
- Re: [Ltib] freescale ltib config problem, Stuart Hughes, 2009/11/30
- Re: [Ltib] freescale ltib config problem, Ed Swarthout, 2009/11/30
- RE: [Ltib] freescale ltib config problem, Yin Olivia-R63875, 2009/11/30
- [Ltib] rpm --force-debian problems, Ed Swarthout, 2009/11/30