AnsweredAssumed Answered

ubuntu 9.10, ./ltib fail.. for MPC8379E

Question asked by Lee Jinyong on Nov 16, 2009
Latest reply on Oct 19, 2012 by qwerty

I'm trying to setup development environment for MPC8379E.

 

first, I installed Ubuntu 9.10 on my PC.

 

and I downloaded MPC837XE-RDB-20081113.iso

 

I ran "install" like below

 

$ cd ~

$ /media/cdrom0/ltib-mpc8379xe-rdb/install

 

~/ltib-mpc8379xerdb-20081113 is successfully made.

 

$ cp ltib-mpc8379xerdb-20081113 ltib-mpc8379xerdb-20081113-small -a

$ cd ltib-mpc8379xerdb-20081113-small

 

and i comment the rpm-build line of the ltib file.  and then I do like below

 

$ ./ltib

 

sometimes later, an error message in host_config.log shows like below

 

 

/tmp/rpm-jylee/BUILD/rpm-4.0.4
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: rpm-fs-4.0.4-1.i686
unknown, 0: Warning: using regular magic file `/etc/magic'
Provides: libbeecrypt.so.2 libpopt.so.0 librpm-4.0.4.so librpmbuild-4.0.4.so librpmdb-4.0.4.so librpmio-4.0.4.so libtool(/opt/freescale/ltib/usr/lib/libbeecrypt.la) libtool(/opt/freescale/ltib/usr/lib/libpopt.la) libtool(/opt/freescale/ltib/usr/lib/librpm.la) libtool(/opt/freescale/ltib/usr/lib/librpmbuild.la) libtool(/opt/freescale/ltib/usr/lib/librpmdb.la) libtool(/opt/freescale/ltib/usr/lib/librpmio.la) perl(RPM::smileyfrustrated:pecfile) = 1.02
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Requires(post): /bin/sh
Requires: /bin/bash /bin/sh /usr/bin/perl libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.3) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.2) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libpopt.so.0 libpthread.so.0 libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.2) libpthread.so.0(GLIBC_2.3.2) librpm-4.0.4.so librpmbuild-4.0.4.so librpmdb-4.0.4.so librpmio-4.0.4.so librt.so.1 librt.so.1(GLIBC_2.1) libz.so.1 perl(Archive::Tar) perl(CGI) perl(Data::smileyvery-happy:umper) 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-jylee/BUILDROOT/rpm-fs-4.0.4-1.i386
Wrote: /tmp/rpm-jylee/RPMS/i686/rpm-fs-4.0.4-1.i686.rpm
Executing(%clean): /bin/sh -e /home/jylee/ltib-mpc837xerdb-20081113-small/tmp/rpm-tmp.E71AOz
+ umask 022
+ cd /tmp/rpm-jylee/BUILD
+ cd rpm-4.0.4
+ rm -rf /tmp/rpm-jylee/BUILDROOT/rpm-fs-4.0.4-1.i386
+ exit 0
Executing(--clean): /bin/sh -e /home/jylee/ltib-mpc837xerdb-20081113-small/tmp/rpm-tmp.901LnT
+ umask 022
+ cd /tmp/rpm-jylee/BUILD
+ rm -rf rpm-4.0.4
+ exit 0
Build time for rpm-fs: 879 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-jylee/rpmdb -e --allmatches --nodeps --define '_tmppath /home/jylee/ltib-mpc837xerdb-20081113-small/tmp' rpm-fs 2>/dev/null
sudo rpm --root / --dbpath /tmp/rpm-jylee/rpmdb --ignorearch -ivh --force --nodeps --excludedocs --define '_tmppath /home/jylee/ltib-mpc837xerdb-20081113-small/tmp' /tmp/rpm-jylee/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-jylee/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:2402
  main::host_checks:1362
   main:530


Started: Mon Nov 16 10:02:20 2009
Ended:   Mon Nov 16 10:17:22 2009
Elapsed: 902 seconds


Build Failed

what can i do for it?

 

Outcomes