aTFTP 在SUSE Linux中的源代码安装配置方法

TFTP协议一般用在PXE启动,常用的有aTFTP和tftpd-hpa,推荐使用aTFTP,因为aTFTP是唯一的免费的符合RFC规范的TFTP服务器。

下载aTFTP(atftp-0.7.tar.gz)

考虑到有的Linux系统没有start-stop-daemon程序,可以自行安装。
下面是安装方法,我的SUSE是有的,因此编译后的程序没有经过测试,不保证正确。

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

本文要用到的相关软件在这里

FTP地址:ftp://www.6688.cc/

用户名:www.linuxidc.net

密码:www.6688.cc

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

下载start-stop-daemon(apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz)

安装 start-stop-daemon
tar xzvf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz
cd apps
gcc –o start-stop-daemon start-stop-daemon.c
cp start-stop-daemon /sbin

安装atftp

如果需要将来的tftp支持pcre参数,需要安装pcre库,因为atftp链接需要。

pcre库主页http://www.pcre.org/

下载pcre库源代码(libpcre-8.02_haiku-2010-04-29.tar.xz)

解压xz文件解压工具下载(xz-4.999.9beta.tar.bz2)

$tar xzvf xz-4.999.9beta.tar.bz2
$./configure --prefix=/opt/gnu/xz

$make

$make install

$ln -s /opt/gnu/bin/xz /bin/xz

$xz -d libpcre-8.02_haiku-2010-04-29.tar.xz

$tar xvf libpcre-8.02_haiku-2010-04-29.tar

$cd pcre-8.02

$ ./configure --prefix=/opt/mathlibs/pcre --enable-pcretest-libreadline --enable-pcregrep-libz --enable-pcregrep-libbz2

$make

$make install

$ln -s /opt/mathlibs/pcre/lib/libpcre.so /lib/libpcre.so


$tar xzvf atftp-0.7.tar.gz
$cd atftp-0.7

因为此软件包比较老,目前比较新的gcc编译会有问题。

相关推荐