I have Linux mint 17.1 64bit and installed pvm by apt , I also installed tcsh , my .cshrc file is this:
setenv PVM_ROOT /home/abd/pvm3
setenv PVM_ARCH `$PVM_ROOT/lib/pvmgetarch`
set path=($path $PVM_ROOT/lib)
set path=($path $PVM_ROOT/lib/$PVM_ARCH)
The pvm3 folder is in home which has a lib folder and the lib folder has pvmgetarch folder.
I have a parent called ParentPerfectLot executable and a child called ChildPerfectLot, both are in ~/pvm3/lib/pvmgetarch
I go to pvm console and run:
spawn -> ParentPerfectLot
it says "No file found".
This may seem a beginner question but I haven't found much to help in the web, so what Am I missing ?
My problem is solved, I just had to change .cshrc to this:
setenv PVM_ROOT /usr/lib/pvm3
setenv PVM_ARCH `$PVM_ROOT/lib/pvmgetarch`
setenv PVM_PATH `$HOME/pvm3/bin/$PVM_ARCH`
it seems PVM_PATH is the variable that must be given , Now I tried at first setting it to ~/pvm3/bin/LINUX64(my architecture) but it didn't work, it only worked when putting $HOME and $PVM_ARCH instead.
Ofcourse you can put whatever folder you want in PVM_PATH but PVM_ROOT and PVM_ARCH must always(in ubuntu and ubuntu-based OSes) be like above, other distros might have different configuration.
Related
I use swig from my within Android.mk. I reference it directly relying on the $PATH variable to contain the path to it's executable.
The issue is that the $PATH variable is different depending on where the android-ndk tool is run from.
Background
In my Android.mk file:
# some stuff ...
#echo "$(PATH)"
swig # swig parameters here...
# more stuff ...
From the terminal, we see the system path includes the path to swig:
which swig
/usr/local/bin/swig
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:
Issue
When the android-ndk is run from within Android Studio I get the following for PATH (note: it's missing the swig path):
/usr/bin:/bin:/usr/sbin:/sbin
This causes my build to fail because "swig" isn't recognised:
make: swig: Command not found
However, if I run the android-ndk directly from the terminal, then the PATH used is the same as my system path and the build works fine:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:
Bad solution
Yes, I could add the path manually to my Android.mk file:
export PATH:=/usr/local/bin/:$(PATH)
However, I'd prefer not to define specific paths for my machine knowing that the whole team uses this file.
Question
I'd prefer the Android.mk file to use my systems PATH instead.
Any ideas how to do this?
Thanks!
The thing in my opinion is that environment variables may be different whether the process is launched from terminal or from the GUI (launchpad, spotlight, ...).
The former would use PATH as set in bashrc (or other shell related startup files) while the other will not.
I think you might find interesting information on how to change the environment variables for the launch deamon in the following question:
Setting environment variables in OS X?
I've installed Vagrant, Vagrant init worked fine. When I now run Vagrant up I get this error:
The executable 'cygpath' Vagrant is trying to run was not
found in the %PATH% variable. This is an error. Please verify
this software is installed and on the path.
Im using cygwin as terminal and I have windows 8, and I've placed C:\cygwin64\bin in my PATH in envoirment variables.
My question is, why do I get this error message when I've specified the path to my cygwin bin?
Thanks!
I am assuming you have Cygwin installed, simply add the path to cygwin (usually c:\cygwin\bin\cygwin.exe) to your shells %path% variable and you should be ready to go.
Ctrl-X => System => Advanced Settings => Variables
Restart your Powershell/Cmd-Window
I just experienced the same error after removing cygwin, and figured out that the answer is not in reinstalling it, but simply removing it from the %Path%, so that Vagrant wouldn't search for it when booting.
So, you can open Control Panel => System => Advanced System Settings => Environment Variables...
And then find Path under System Variables, and remove any references to cygwin.
Restart your shell, and you're good to go.
My soultion was to create a small wrapper script, vagrant.bat:
#setlocal
#set PATH=C:\HashiCorp\Vagrant\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
#vagrant %*
#endlocal
The vagrant.bat file is in a directory that is first in my PATH.
I suddenly had the same problem and found that for some reason Cygwin had been erased from the system (I was running from git bash shell). I reinstalled Cygwin and it then worked 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.
I'm followint these instructions to install Kile+TexLive 2010 with package manager on my Ubuntu Maverick: http://ubuntuforums.org/showthread.php?t=141934
The problem I have is that when I finish downloading all the packages to my computer, I have to edit the path but Ubuntu doesn't recognize it. The lines are the following:
PATH=/usr/local/texlive/2005/bin/i386-linux:$PATH
export PATH
I run echo $PATH and as long as I don't close the terminal, the path appears with the echoing, but if I close it, the path disappears. Nevertheless (whether I close the terminal or not), I'm supposed to run texhash but I am told that the command is not found. I already tried editing the path by adding the two lines above to both .bashrc in my home directory and to bash.bashrc in /etc/ directory.
I'm just following the instructions linked above, but I'm a linux rookie. Could anyone help, please?
in order to permanently change any environment variable under Ubuntu/Linux, you must modify the files you mentioned (for example ~/.profile). If you simply issue an export via the terminal, its effect will end once the terminal is closed. Sometime it is needed to perform a logout/login for the changes to take effect.
Also, mind the syntax of what you write in the above mentioned file(s), like "'s around $PATH.
Refer to this question: https://serverfault.com/questions/44275/how-to-add-a-directory-to-my-path-in-ubuntu