Cheap VPS host selection
Provide server host evaluation information

What to do if the dos2unix command cannot be found (solution attached)

What if the dos2unix command cannot be found- bash: dos2unix: command not found

Installation method:

At http://linux. Softpedia. com/progdownload/dos2unix-download-5519.html Download 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
Download pop-1.14-2rt.x86_64.rpm at http://rpm, pbone.net/index.php3/stat/4/idpl/17960519/dir/other/com/popt-1.14-2rt.x86_64.rpm.html

[ 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

Installation succeeded!

Do not reprint without permission: Cheap VPS evaluation » What to do if the dos2unix command cannot be found (solution attached)