安装方法:

在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

  1. Configuring hd2u 1.0.0
  2. checking for gcc... gcc
  3. checking for C compiler default output file name... a.out
  4. checking whether the C compiler works... yes
  5. checking whether we are cross compiling... no
  6. checking for suffix of executables...
  7. checking for suffix of object files... o
  8. checking whether we are using the GNU C compiler... yes
  9. checking whether gcc accepts -g... yes
  10. checking for gcc option to accept ANSI C... none needed
  11. checking for a BSD-compatible install... /usr/bin/install -c
  12. checking for getopt_long in -lpopt... no
  13. configure: error: *** libpopt not found
  1.  
    Configuring hd2u 1.0.0
  2.  
    checking for gcc... gcc
  3.  
    checking for C compiler default output file name... a.out
  4.  
    checking whether the C compiler works... yes
  5.  
    checking whether we are cross compiling... no
  6.  
    checking for suffix of executables...
  7.  
    checking for suffix of object files... o
  8.  
    checking whether we are using the GNU C compiler... yes
  9.  
    checking whether gcc accepts -g... yes
  10.  
    checking for gcc option to accept ANSI C... none needed
  11.  
    checking for a BSD-compatible install... /usr/bin/install -c
  12.  
    checking for getopt_long in -lpopt... no
  13.  
    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

安装成功

如上述步骤执行whereis dos2unix :没有返回路径请执行下面。

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

linux中没有dos2UNIX或者UNIX2dos命令解决办法的更多相关文章

  1. linux中没有dos2UNIX或者UNIX2dos命令怎么解决办法

    linux中没有dos2UNIX或者UNIX2dos命令怎么解决办法 http://blog.csdn.net/w616589292/article/details/38274475 dos2unix ...

  2. Linux中Cache内存占用过高解决办法

    在Linux系统中,我们经常用free命令来查看系统内存的使用状态.在一个RHEL6的系统上,free命令的显示内容大概是这样一个状态: 这里的默认显示单位是kb,我的服务器是128G内存,所以数字显 ...

  3. Linux中oracle安装时候报ora-00119解决办法

    ORA-00119: invalid specification for system parameter LOCAL_LISTENER ORA-00130: invalid listener add ...

  4. linux 增加新用户无法使用sudo命令解决办法

    昨天一不小心把自己的系统搞崩了,也没有快照,没法进行还原操作,所以只能重装系统解决了,装完系统以后一切正常,当我新增了一个用户,使用sudo命令切换到root用户时,发现怎么都切换不过去,经过百度发现 ...

  5. centos7中bash: maven: 未找到命令... 解决办法

    安装了maven,但在执行mvn -v或maven-versions时提示bash: maven: 未找到命令... 应该是环境变量出错,把MAVEN_HOME的路径换到PATH上就可以了,如下: e ...

  6. Linux中切换用户变成-bash4.1-$的解决方法【转】

    转自 Linux中切换用户变成-bash4.1-$的解决方法 - xia_xia的博客 - 博客频道 - CSDN.NEThttp://blog.csdn.net/xia_xia0919/articl ...

  7. linux中常用的60个命令及作用详解

    Linux 必学的 60 个命令 Linux 提供了大量的命令,利用它可以有效地完成大量的工作,如磁盘操作.文件存取.目录操作.进程管理.文件权限设定等.所以,在 Linux 系统上工作离不开使用系统 ...

  8. Linux中系统检测工具top命令

    Linux中系统检测工具top命令 本文转自:https://www.cnblogs.com/zhoug2020/p/6336453.html 首先介绍top中一些字段的含义: VIRT:virtua ...

  9. Linux课程---12、linux中内存指令(top命令的作用是什么)

    Linux课程---12.linux中内存指令(top命令的作用是什么) 一.总结 一句话总结: top实时观察进程.内存和CPU情况 1.电脑出现反应慢情况,最先想到的是什么? 内存 2.linux ...

随机推荐

  1. 【BZOJ3832】[POI2014]Rally(拓扑排序,动态规划)

    [BZOJ3832][POI2014]Rally(拓扑排序,动态规划) 题面 BZOJ,权限题 洛谷 题解 这题好强啊,感觉学了好多东西似的. 首先发现了一个图画的很好的博客,戳这里 然后我来补充一下 ...

  2. 自动化部署之搭建yum仓

    一.导言 YUM主要用于自动安装.升级rpm软件包,它能自动查找并解决rpm包之间的依赖关系.要成功的使用YUM工具安装更新软件或系统,就需要有一个包含各种rpm软件包的repository(软件仓库 ...

  3. 解题:NOI 2010 航空管制

    题面 常见的套路与不常见的套路 第一问是常见的套路,建反边用优先队列跑拓扑排序 第二问是不常见的套路,如何判断一个点最早什么时候起飞?先不加它来拓扑排序,直到拓扑排序不能进行下去了,这个时刻就是它必须 ...

  4. div 内table 居中实现代码

    有时候在一个div里面添加一个表格,如想让它居住排列,需要做如下的操作. css代码:   代码如下: #dlgReply { /*display: table-cell; text-align: c ...

  5. laravel 命令行测试 Uncaught ReflectionException: Class config does not exist

    require __DIR__ . '/vendor/autoload.php'; $app = require_once __DIR__ . '/bootstrap/app.php'; config ...

  6. sking

    #include #include #include typedef struct SKI{ int data; int x; int y; char flag; int len; }STSKI; i ...

  7. dedecms织梦自增索引标签

    在列表中我们经常会需要动态的索引值,那么就可以用到如下标签 [field:global.autoindex/] 默认是从1开始,如果我们想从0或者从其他数开始如下: [field:autoindex ...

  8. 第6月第6天 opengles 三角形

    1. http://blog.csdn.net/u010963658/article/details/52691578 2.多张图 https://www.oschina.net/question/2 ...

  9. Android学习笔记——从源码看Handler的处理机制

    可能是出于性能的考虑,Android的UI操作是非线程安全的. 也就是说,如果你在一个新开的线程中直接操作UI是会引发异常的. 但是,Android又规定,不要去阻塞UI线程!否则,轻者引起程序卡顿, ...

  10. Jenkins的安装及使用(二)

    介绍两个方面:编译本地项目和拉取git代码并编译 在这之前,先要进行一个配置. 一.编译本地项目 开始添加任务,任务类型选择自由风格: 点击项目进入详情,源码管理选择无 在构建的地方选择项目,然后注意 ...