操作系统使用Fedora 7
1.
===============================================================================
使用root用户
mount /work/PxxxxRDB_xxxxxxxx-ltib.iso /work/ltibiso/ -o loop
2.
===============================================================================
使用普通用户执行安装
$ /work/ltibiso/install
根据提示输入安装路径
3.
===============================================================================
安装结束提示信息
Copying packages to /work/ltibinstall/ltib-pxxxxrdb-xxxxxxxx/pkgs
Installation complete, your ltib installation has been placed in
/work/ltibinstall/ltib-pxxxxrdb-xxxxxxxx, to complete the installation:
cd /work/ltibinstall/ltib-pxxxxrdb-xxxxxxxx
./ltib
4.
===============================================================================
$ ./ltib
Don't have HTTP::Request::Common
Don't have LWP::UserAgent
Cannot test proxies, or remote file availability without both
HTTP::Request::Common and LWP::UserAgent
I ran the command: sudo -S -l which returned:
Password:
This means you don't have sudo permission to execute rpm commands as root
without a password. This is needed for this build script to operate correctly.
To configure this, as root using the command "/usr/sbin/visudo",
and add the following line in the User privilege section:
username ALL = NOPASSWD: /bin/rpm, /opt/freescale/ltib/usr/bin/rpm
traceback:
main::check_sudo_setup:2443
main::host_checks:1401
main:542
Started: Fri May 10 20:42:21 2013
Ended: Fri May 10 20:42:26 2013
Elapsed: 5 seconds
Build Failed
Exiting on error or interrupt
5.
===============================================================================
使用root用户
# visudo
在最后加入
username ALL = NOPASSWD: /bin/rpm, /opt/freescale/ltib/usr/bin/rpm
6.
===============================================================================
再次执行
$ ./ltib
Don't have HTTP::Request::Common
Don't have LWP::UserAgent
Cannot test proxies, or remote file availability without both
HTTP::Request::Common and LWP::UserAgent
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:
/work/ltibinstall/ltib-pxxxxrdb-xxxxxxxx/host_config.log
7.
===============================================================================
执行./ltib -m shell
Entering ltib shell mode, type 'exit' to quit
LTIB>
LTIB> cd /work/source
LTIB> make
===============================================================================