Hot answers tagged

5

Other answers show how to download and compile dos2unix, but if you're simply looking to convert files from DOS-style line endings (CR-LF) to Unix-style line endings, there are several other approaches which shouldn't involve installing anything: if you have tr: tr -d '\r' < input > output if you have Perl: perl -pi -e 's/\r\n/\n/g' input (which ...


3

You can do this in two separate steps: Install the package with dpkg. sudo dpkg -i packagename.deb That created missing dependencies. apt-get can fix missing dependencies automatically. sudo apt-get -f install That should also automatically finish configuring the original package. (So you will not likely need to run sudo dpkg --configure -a yourself.) ...


3

The /usr/bin/g++ is a symbolic link to the real executable which is /usr/bin/x86_64-linux-gnu-g++. I guess your symbolic link is missing. Try and see if the latter file exists but the former does not. Then you can fix it manually by issuing sudo ln -sv /usr/bin/X86_64-linux-gnu-g++ /usr/bin/g++. This answer is taken from here.


3

You should force the re-installation of the g++ package; this will restore the appropriate symbolic links: sudo apt-get --reinstall install g++ Once this is done you should find that /usr/bin/g++ exists once again and is a symbolic link to g++-5.


3

If you want to install Python packages from source, you should do so in a virtualenv. That way you minimize the chance that you break your system's python, and it you make it possible to just remove the installed package without fear of removing too much. In order to do so you must first install virtualenv, e.g. using sudo apt-get install ...


3

In FreeBSD, you have to explicitly allow services outside the core system to start. In your /etc/rc.conf add the following line: avahi_daemon_enable="YES" (You might also need avahi_dnsconfd_enable="YES".)


2

First of all, you downloaded a dos2unix executable for windows (dos2unix-7.3.3-win32.zip), which is not what you want because you are using Linux. Try downloading the source code for dos2unix for Linux and extract it to your home dir: mkdir $HOME/bin/ tar -zxvf dos2unix-7.3.3-src.tar.gz # the exact name of the downloaded file may vary cd dos2unix-7.3.3 ...


2

Use dpkg -L dateutils to find out what has been installed. In specific, you should look for binaries in /bin, /sbin etc.


2

GNU make has an option to do a dry-run: ‘-n’ ‘--just-print’ ‘--dry-run’ ‘--recon’ “No-op”. Causes make to print the recipes that are needed to make the targets up to date, but not actually execute them. Note that some recipes are still executed, even with this flag (see How the MAKE Variable Works). Also any recipes needed to ...


2

Any version of make has a -n option (see POSIX description of make), but the shell has no corresponding option (see for example Show commands without executing them). To aggravate the situation, if you happen to use automake, it pastes-in large chunks of boilerplate scripting (which its developers refer to as "recursive rules") which defeat the ability of ...


1

Determine the path in which the user is attempting to launch the bin file # this will output the path the user is in actually # and you can use this aswell as a variable. echo $PWD # This will search the whole filesystem for your file # in case you need this rather than the patch the user is in. # you can aswell make this a variable to put the whole ...


1

A simple search reveals that the package is maintained on github, but the installation procedure suggested there is incomplete and contains assumptions. Use the following commands: release=0.54 wget https://github.com/mdom/dategrep/releases/download/$release/dategrep-standalone-big sudo cp dategrep-standalone-big /usr/local/bin/dategrep sudo chmod 755 ...


1

You have to download the source code and compile it. Here is the source code. To untar it execute: (VERSION equals to the version you have downloaded) tar xvf dos2unix-VERSION.tar.gz Finaly execute: make If the compilation succeeded, it will appear an executable called dos2unix and unix2dos.


1

Download dos2unix-7.3.3.tar.gz. tar xvzf dos2unix-7.3.3.tar.gz cd dos2unix-7.3.3 make install prefix=$HOME This will install dos2unix in $HOME/bin/. For further information see INSTALL.txt.


1

Apple doesn't install it (afaik), so you'll need Fink or MacPorts or homebrew or a manual install. Assuming a properly configured PKG_CONFIG_PATH for Fink or MacPorts or homebrew or the manual install, in this case MacPorts, pkg-config might indicate the presence of gsl (and, bonus, the various compiler flags to use). % echo $PKG_CONFIG_PATH ...


1

Do I need to compile it myself to use it on a 32 bit system? Short: Yes. Long: Looking at... github.com/atom/atom github.com/atom/atom/releases github.com/atom/atom/blob/master/docs/build-instructions/linux.md ...it really looks like there are no ready to download 32bit packages for Debian and other Linux flavours.



Only top voted, non community-wiki answers of a minimum length are eligible