dos2unix命令找不到怎么办
1个回答
展开全部
安装方法:
在http://linux.softpedia.com/progDownload/Dos2Unix-Download-5519.html下载hd2u-1.0.0.tgz
[root@localhost ~]#tar -zxf hd2u-1.0.0.tgz
[root@localhost ~]#cd hd2u-1.0.0
[root@localhost ~]#./configure
Configuring hd2u 1.0.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for getopt_long in -lpopt... no
configure: error: *** libpopt not found
在http://rpm.pbone.net/index.php3/stat/4/idpl/17960519/dir/other/com/popt-1.14-2rt.x86_64.rpm.html下载popt-1.14-2rt.x86_64.rpm
[root@localhost ~]#rpm -ivh popt-1.14-2rt.x86_64.rpm
[root@localhost ~]#cd hd2u-1.0.0
[root@localhost ~]#./configure&&make&&make install
[root@localhost ~]#whereis dos2unix
dos2unix: /usr/local/bin/dos2unix
在http://linux.softpedia.com/progDownload/Dos2Unix-Download-5519.html下载hd2u-1.0.0.tgz
[root@localhost ~]#tar -zxf hd2u-1.0.0.tgz
[root@localhost ~]#cd hd2u-1.0.0
[root@localhost ~]#./configure
Configuring hd2u 1.0.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for getopt_long in -lpopt... no
configure: error: *** libpopt not found
在http://rpm.pbone.net/index.php3/stat/4/idpl/17960519/dir/other/com/popt-1.14-2rt.x86_64.rpm.html下载popt-1.14-2rt.x86_64.rpm
[root@localhost ~]#rpm -ivh popt-1.14-2rt.x86_64.rpm
[root@localhost ~]#cd hd2u-1.0.0
[root@localhost ~]#./configure&&make&&make install
[root@localhost ~]#whereis dos2unix
dos2unix: /usr/local/bin/dos2unix
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询