I've been having trouble with this for a while, and had another thread open, but it's shifted to a different arena so I thought I'd open a new one with a more precise title.
I'm trying to configure my .emacs file to allow:
1. Correct PATH routing and detection by Emacs
2. Allow Emacs to detect the definition of: ADMB_HOME=~/admb
Now, the general method I've seen from a number of sources to set the PATH is to run some form of:
Modify the .gnomerc file to read
Code:
#!/bin/bash
source ~/.bashrc
and then in the .bashrc file write
Code:
PATH=$PATH:~/admb/bin
export PATH
export ADMB_HOME=~/admb
which will set both the proper PATH as well as allow for the definition of ADMB_HOME = ~/admb.
For whatever reason, however, this has not functioned correctly. Nor has any variant of routing from a .profile, .xsession or bash_profile file with the PATH commands written in the bash_env or similar file, nor has simply entering
Code:
PATH=$PATH:~/admb/bin
export PATH
export ADMB_HOME=~/admb
into the .gnomerc file, which has worked for some folks.
Obviously, I'm making a basic error somewhere in terms of referencing the proper PATH commands. I've checked file permissions and everything else I can think of.
What HAS worked for routing the PATH is to modify the .emacs file directly using
Code:
(normal-top-level-add-subdirs-to-load-path)
(setq path-as-list (split-string (getenv "PATH") ":"))
(add-to-list 'path-as-list "/home/arctos/admb/bin")
(setenv "PATH" (mapconcat 'identity path-as-list ":"))
which allows Emacs to add /home/arctos/admb/bin to the PATH.
But I still need to tell Emacs that ADMB_HOME = ~/admb. Without that shift, Emacs can't run some of the admb commands or access header files needed to run the admb code.
SO:
can anyone perhaps see a reason why I am unable to use the first methods to properly route the PATH and the equivalency in Emacs
or
can anyone suggest how I can write the equivalency in the .emacs file directly so that Emacs knows ADMB_HOME=~/admb?
Is it possible that any of this is somehow connected to the DASH shell instead of the BASH?
Thanks!!
Bookmarks