加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

dos2unix 安装

发布时间:2020-12-15 09:08:01 所属栏目:安全 来源:网络整理
导读:今天需要转义windows下面的文件,发现centos6.5下面提示 -bash: dos2unix: command not found, 最终只需要执行这条语句就可以了 yum install -y dos2unix 上网搜索,发现百度里面的安装例子都差不多http://blog.csdn.net/w616589292/article/details/382744

今天需要转义windows下面的文件,发现centos6.5下面提示 -bash: dos2unix: command not found,

最终只需要执行这条语句就可以了yum install -y dos2unix

上网搜索,发现百度里面的安装例子都差不多http://blog.csdn.net/w616589292/article/details/38274475

但发现按上面的安装步骤,还是提示:

[root@iZwz93nu0s9j3y9zwzy7bkZ hd2u-1.0.0]# ./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


但发现按上面的安装步骤,还是提示:

rpm -ivh popt-1.8-1.x86_64.rpm 或者 rpm -ivh popt-1.14-2rt.x86_64.rpm,之后还是提示同样的错误。

后面去下载了popt-1.16.tar.gz,重新安装后发现才能正常使用

http://www.linuxfromscratch.org/blfs/view/svn/general/popt.html


tar -xzvf popt-1.16.tar.gz

cd popt-1.16

./configure

make

makeinstall


再cd hd2u-1.0.0

同样的

./configure

make

makeinstall

用root安装完成后,请重新打开一个界面或者exit。


最后发现都不可用,坑爹。 -- 最终在网上找了一个命令搞定yum install -y dos2unix

dos2unix test.txt 提示:dos2unix: converting file test.txt to UNIX format ...

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读