system: Ubuntu 14.04
I download a GSL(GNU Scientific Library) and it is correctly installed on my computer, in directory /home/chenjiyao/GSL
Then I add a few lines at the buttom of ~/.bashrc
export PATH=$PATH:/home/chenjiyao/GSL/bin
export C_INCLUDE_PATH=$C_INCLUDE_PATH:/home/chenjiyao/GSL/include
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/chenjiyao/GSL/lib
then I just source ~/.bashrc in the terminal.
But it seems not working because when I include<gsl/gsl_math.h> in the source file, I was told that the head file is not found, which means the path for gcc is not settled correctly.
What's wrong with it ?
Thank you.
Related
I'm trying to use the shortcut "laravel new site" on bash but i got "laravel: command not found".
I already installed laravel by composer, and tried like 5 different ways to add this to PATH.
I added:
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
On the last line of bashrc, rebooted, still not working.
From the laravel installation documentation
Make sure to place the $HOME/.composer/vendor/bin directory (or the equivalent directory for your OS) in your $PATH so the laravel executable can be located by your system.
So, instead of
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
try
export PATH="$PATH:$HOME/.composer/vendor/bin"
When you edit .bashrc file, run command source ~/.bashrc to reload changes
I'm new to Linux and i use Kali Linux. I downloaded the eclipse ide. Every time, when i need to run it, i should navigate to eclipse folder and run the eclipse file. there are other softwares like pycharm have the same issue.
If there's any method to run these programs just typing "eclipse" or "pycharm" on terminal (like firefox, atom) it's very helpful. If anyone know how to do it please let me know. I already searched a solution for this problem and i couldn't find any solution.
-Thanks (sorry for my English)
Modify your ~/.bashrc and add the PATH of your application(you use PATH rather then CONFIG_PATH)
export PATH=$PATH:/path/to_directory_containing_program
export CONFIG_PATH=/my_path_to_PROGRAM/PROGRAM/config/
Another solution is Create a shorcut in your desktop
Go to cd /usr/local/bin (or cd /usr/bin) and do:
sudo ln -s /path/to/eclipse where eclipse is the binary that you are used to launch.
/usr/local/bin and /usr/bin directories should already be in your PATH, so you don't need to modify ~/.bashrc.
After flashing the Tegra Board the CUDA Drivers (including the CUDA compiler nvcc) must be installed. To do so I simply used the given format:
sudo ./cuda-l4t.sh .cuda-repo-l4t-8-0-local_8.0-76_arm64.deb 8.0 8-0
and
source ~/.bashrc
but when I enter nvcc -V it does not show the wanted specification about the nvcc, it just tells me that the command was not recognized
First of all you should check if CUDA was really installed!
To do so go to the path:
/usr/local
There must be a cuda folder or a folder named cuda-8-0 or whatever version you installed. Remember the name and the path.
Now check your bashrc by using gedit/vi/nano/vim whatever you prefer:
vim ~/.bashrc
Go to the bottom of the file. There should be some exports regarding the PATH Variable and the LD_LIBRARY_PATH. Check if it was written to these variables and then overwritten again.
You must export the Path to the bin folder of your CUDA application and the Path to lib64 folder.
To do so at the bottom of the bashrc must stand something like this:
export PATH=/usr/local/cuda-8.0/bin: ....
export LD_LIBARY_PATH=/usr/local/cuda-8.0/lib64: ....
After the double dots may follow some other paths. make sure that the path given to the cuda application is the correct one and that it is not overwritten again.
After you made the correct changed do not forget to source the basrhc again.
I have installed cygwin 64 bit, and have the path variable set up for its bin directory too. In command prompt "cygcheck -c cygwin" command also successfully displays
Cygwin Package Information
Package Version Status
cygwin 1.7.23-1 OK
But wen I start cygwin terminal it displays this
C:\PROGRA~2\RATIONAL\RATION~1\NUTCROOT\mksnt\sh.exe: No such file or directory
Also netbeans (7.3) does not automatically detect this compiler. What can be the problem here?
The path for /usr/bin/ should already be set when you install cygwin, so by resetting it you may have actually removed the correct path.
You can see your path like this:
echo $PATH
I'd first try to remove your custom path statement, and if that doesn't work, you may have to uninstall and reinstall.
My operating system is linux mint 15, and I recently installed the texlive 2013. After installation, I appended the search path for texlive to ~/.bashrc
# set PATH
PATH=/usr/local/texlive/2013/bin/x86_64-linux:$PATH; export PATH
# set MANPATH
MANPATH=/usr/local/texlive/2013/texmf/doc/man:$MANPATH; export MANPATH
# set INFOPATH
INFOPATH=/usr/local/texlive/2013/texmf/doc/info:$INFOPATH; export INFOPATH
Then I could locate cmds such as pdflatex on xterm. However, when I wanted to use the pkg Sweave in rstudio, it always prompted that No Tex installation detected. I examined the $PATH in rstudio by Sys.getenv("PATH") and found out that the texlive/ directory was not appended to $PATH. So I guessed the problem was that the environment of Xsession doesn't take ~/.bashrc into considration. How to address this issue. Any help would be appreciated.
I have recently set up a configuration like yours.
The most correct solution is to put those lines into ~/.profile (or /etc/profile, for all users, as I did); this way all processes will inherit that PATH, not only those derived from bash.
You are right. R Studio runs in a shell that doesn't pay attention to the usual startup scripts. As far as I can tell, the appropriate place to change them globally (for all users) is R_HOME/etc/Renviron.site and for individual users, $HOME/.Renviron. (On my system, R_HOME is /usr/lib/R.)
Run ?Startup in the R Studio console for more details.