ltib cannot be run because one or more of the host packages 解决方法参考

来源:互联网 发布:mac准备安装时发生错误 编辑:程序博客网 时间:2024/06/05 14:27


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 1409.
traceback:
main::host_checks:1409
  main:554


Exiting on error or interrupt


根据提示,推断应该是 依赖的包 未安装


一、更新软件源

$ sudo gedit /etc/apt/sources.list


在弹出的文本框中将原始内容全部清空,修改成下面的网易源或搜狐源,保存并退出
网易源
deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
搜狐源
deb http://mirrors.shlug.org/ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.shlug.org/ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.shlug.org/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ lucid-updates universe main multiverse restricted


更新源(下载速度视网速而定)
$ sudo apt-get update




添加权限
$ sudo visudo
在最后一行添加:


%admin ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm


Ctrl+x 退出,输入y,回车保存退出。



二、更新软件包


安装库文件
$ sudo aptitude -y install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev
$ sudo aptitude -y install libdbus-glib-1-dev liborbit2-dev intltool
$ sudo aptitude -y install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool
$ sudo aptitude -y install uuid-dev liblzo2-dev
$ sudo aptitude -y install tcl dpkg
$ sudo aptitude -y install gparted emacs22-nox openssh-server
$ sudo aptitude -y install nfs-common nfs-kernel-server lintian
$ sudo aptitude -y install git-core git-doc git-email git-gui gitk
$ sudo aptitude -y install diffstat indent tofrodos fakeroot doxygen uboot-mkimage
$ sudo aptitude -y install sendmail mailutils meld atftpd sharutils
$ sudo aptitude -y install manpages-dev manpages-posix manpages-posix-dev linux-doc
$ sudo aptitude -y install vnc4server xvnc4viewer



三、 再次运行  ./ltib  即可 


ubuntu@ubuntu:~/imx28/source/ltib$ ./ltib 


Installing host support packages.


This only needs to be done once per host, but may take up to
an hour to complete ...


If an error occurs, a log file with the full output may be found in:
/home/ubuntu/imx28/source/ltib/host_config.log



然后就是漫长的等待....................







Processing deployment operations
==================================
making filesystem image file
staging directory is /home/fudixin/imx28/source/ltib/rootfs.tmp
removing the boot directory and files
removing man files and directories
removing info files
removing /usr/share/locale directory
removing static libraries
removing target rpm database
stripping binaries and libraries


Filesystem stats, including padding:


    Total size            = 14904k
    Total number of files = 1292


Your ramdisk exceeds the old default size of 4096k, you may need to
set the command line argument for ramdisk_size in your bootloader
allowing 10% free this gives 16394k .  For instance, for u-boot:




setenv bootargs root=/dev/ram rw ramdisk_size=16394


creating an ext2 compressed filesystem image: rootfs.ext2.gz
genext2fs: Running in LTIB backwards compatibility mode: -i -> -N


Started: Fri May  8 16:22:58 2015
Ended:   Fri May  8 17:44:33 2015
Elapsed: 4895 seconds


Build Succeeded



将近 1.5h  。。。。。。。。。。。。。


以上





0 0
原创粉丝点击