[root@localhost ~]#dos2unix tr.py
-bash: dos2unix: command not found
安装方法:
在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
安装成功
1、
sudo rpm -ivh filesystem-2.3.15-alt1.x86_64.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Preparing... ########################################### [100%]
1:filesystem warning: group proc does not exist - using root4%)
########################################### [100%]
error: unpacking of archive failed on file /var/mail: cpio: rename failed - Is a directory
error: filesystem-2.3.15-alt1.x86_64: install failed
解决方法:
sudo rm -rf /var/mail
sudo rm -rf /var/spool/mail
2、sudo rpm -ivh popt-1.8-1.x86_64.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
error: Failed dependencies:
libc.so.6()(64bit) is needed by popt-1.8-1.x86_64
libc.so.6(GLIBC_2.2.5)(64bit) is needed by popt-1.8-1.x86_64
libc.so.6(GLIBC_2.3)(64bit) is needed by popt-1.8-1.x86_64
3、sudo rpm -ivh glibc-core-2.26.0.124.98f244e-alt1.x86_64.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Preparing... ########################################### [100%]
file /sbin/ldconfig from install of glibc-core-6:2.26.0.124.98f244e-alt1.x86_64 conflicts with file from package ldconfig-6:2.3.2-17sls.i586
解决办法:sudo rpm -e --nodeps ldconfig-2.3.2-17sls.i586
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
4、sudo rpm -ivh glibc-core-2.26.0.124.98f244e-alt1.x86_64.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Preparing... ########################################### [100%]
1:glibc-core warning: /etc/bindresvport.blacklist created as /etc/bindresvport.blacklist.rpmnew
warning: /etc/gai.conf created as /etc/gai.conf.rpmnew
warning: /etc/ld.so.conf created as /etc/ld.so.conf.rpmnew
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
warning: /etc/rpc created as /etc/rpc.rpmnew
########################################### [100%]
/sbin/glibc_post_upgrade: relocation error: /lib/x86_64-linux-gnu/libc.so.6: symbol __libc_enable_secure, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
warning: %post(glibc-core-6:2.26.0.124.98f244e-alt1.x86_64) scriptlet failed, exit status 127
解决办法: