Tag Info

New answers tagged

2

The order you give is the order you get: export PATH=.:$PATH (the trailing / is optional). But be aware that it's not recommended practice.


1

The tilde (~) character is not expanded when enclosed in quotes (even double quotes, which allow most other filename expansions). You should replace ~ by $HOME in the PATH export: export PATH="/usr/local/texlive/2014/bin/x86_64-linux:$PATH" export PATH="$HOME/anaconda/bin:$PATH"


1

Did you change a system file? Normally, the PATH variable should be set correctly... However, in your second try, you forgot the starting slash. The command should be mspyellow@BJ:~$ /usr/bin/sudo apt-get install apturl


1

The issue is the embedded blank in the name. The simplest way to resolve this issue is to enclose the full path string with quotes (i.e. FILE_NAME="/home/${USER}/Downloads/My Folder" The reason to use " in your case is because of your use of $USER which requires a substitution, with ' this would not occur. A secondary question is how are you going to use ...


3

You have to use quotes if the path contains space characters: FILE_NAME="/home/$USER/Downloads/My Folder"


0

open terminal and type sudo nano ~/.bashrc add all the exports you need like ... export JAVA_HOME=/usr/local/java/jdk1.6.0_06(your path) export ANT_HOME=/opt/ant/apache-ant-1.9.4 finally restart terminal for changes to take effect


1

Your installation is all right but you need the alternatives system to set the default binary to be executed when you just type jave or javac. Basically the alternatives system lets you to select a binary to run when there are many other alternative binaries having the same functionality. In your case you have two versions of java installed with ...


2

You should use the alternatives: a way that Ubuntu offers to support multiple versions of a software. After you've installed the Oracle JDK, tell it to the alternatives: sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_40/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" ...


0

You need to run: source /etc/environment so that the contents of the /etc/environment file gets executed on the current shell and you will get the value of the variable set from the current shell. Otherwise you have to logout from the current session and login again to get the value.


0

From help set: set: Set or unset values of shell options and positional parameters. So for the values you are entering with set are literally becoming positional parameters (arguments) to set rather than environment variables. $ set foo=bar $ echo "$foo" ##Prints nothing because it is not a variable $ echo "$1" ##Prints the first argument of the ...


0

For a quick solution, add to the compilation line: -I/home/student/Downloads/fftw-3.3.4/api/ -L/home/student/Downloads/fftw-3.3.4/lib The -L path might need adjustment depending on where the libraries are. To automate this you can add the following to your .bashrc file: export LDFLAGS="-L/home/student/Downloads/fftw-3.3.4/lib" export ...



Top 50 recent answers are included