dos2unix 安装

来源:互联网 发布:布朗熊玩偶淘宝 编辑:程序博客网 时间:2024/06/05 01:29

今天需要转义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

make install


再cd hd2u-1.0.0

同样的

./configure

make

make install

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


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

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

阅读全文
'); })();
0 0
原创粉丝点击
热门IT博客
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 新宝来二手价格 新宝来2018款 大众宝来系列 2012一汽大众速腾 一汽大众bora是什么车 bora 新宝莱 宝莱汽车 大众宝莱 大众报价汽车 大众保来 保来 全新速腾 2016款迈腾 大众bora 大众bora是什么车 大众宝莱报价及图片 bora大众 baolai 迈腾旅行版 宝莱车 一汽大众bora 大众bora报价 大众bora多少钱 逸动 家用汽车 民俗 peri 豆沙 丹尼尔斯 瓦格纳 新款尼桑轩逸报价 多宝莱 途观2016款报价及图片 仙界传 600ml madison 芯片 天降 得宝莱 prado