安装方法:

在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. 【BZOJ3670】【NOI2014】动物园(KMP算法)

    [BZOJ3670]动物园(KMP算法) 题面 BZOJ 题解 神TM阅读理解题 看完题目之后 想暴力: 搞个倍增数组来跳\(next\) 每次暴跳\(next\) 复杂度\(O(Tnlogn)\) ...

  2. DataTables合并单元格(rowspan)的实现思路(多分组分类的情况)

    直接上代码,原理之前的随笔已经讲过了.http://www.cnblogs.com/hdwang/p/7115835.html 1.先看看效果 2.html代码,含js代码 2.1 common.js ...

  3. java Integer.valueOf 和 Integer.parseInt 和 new Integer区别及注意事项

    先看一下下面的结果 1.System.out.println(127==127); //true , int type compare 2.System.out.println(128==128); ...

  4. (转)Maven学习总结(二)——Maven项目构建过程练习

    孤傲苍狼 只为成功找方法,不为失败找借口! Maven学习总结(二)——Maven项目构建过程练习 上一篇只是简单介绍了一下maven入门的一些相关知识,这一篇主要是体验一下Maven高度自动化构建项 ...

  5. 关于NIO一些优化

    1. 使用NIO开发web服务,传输文件内容,可以使用FileChannel.transferTo(position,count,socketChannel)来提升性能: 经过测试,确实能提升10% ...

  6. sqlite3数据库的简要应用

    Sqlite3数据库升级方案的变化. 1,  若是讲要升级的数据库版本更高,则从低版本数据库中拷贝与新数据库相同字段的内容,其他字段按照默认值创建.A->B->C这样逐个版本升级,每个版本 ...

  7. Access与SQL Server 语法差异

    序号 简述 Access语法 SqlServer语法 Oracle语法 解决方案 01 系统时间 Now(),Date() GETDATE() SYSDATE GetSysTimeStr 02 连接字 ...

  8. excel根据一列关键字将多个表格中所需列合并

    VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]) lookup_value要查询的列 table_array第一列是被 ...

  9. bzoj千题计划265:bzoj4873: [六省联考2017]寿司餐厅

    http://www.lydsy.com/JudgeOnline/problem.php?id=4873 选a必选b,a依赖于b 最大权闭合子图模型 构图: 1.源点 向 正美味度区间 连 流量为 美 ...

  10. R8:Learning paths for Data Science[continuous updating…]

    Comprehensive learning path – Data Science in Python Journey from a Python noob to a Kaggler on Pyth ...