In my .zshenv I've tried adding an environment variable by adding the following line
export XPRESSDIR='/Applications/FICO\ Xpress/Xpress\ Workbench.app/Contents/Resources/xpressmp'
I've also tried
export XPRESSDIR='/Applications/FICO\ Xpress/xpressmp'
But each time I Pkg.build("Xpress"), I get an error message telling me about my environment variable for XPRESSDIR
ERROR: Error building Xpress:
ERROR: LoadError: Unable to locate Xpress installation.
Please check your enviroment variable XPRESSDIR.
Thanks
Problem: Environment variable not being loaded properly
Is the environment variable being loaded into Julia?
In a Julia session, run
import Pkg
ENV["XPRESSDIR"] = "/Applications/FICO Xpress/xpressmp"
Pkg.add("Xpress")
Pkg.build("Xpress")
Problem: path is incorrect
On some mac installations, the path should be
/Users/[USER-NAME]/Applications/fico-xpress/xpressmp. You should check where Xpress is installed. It needs to be set so that %XPRESSDIR%/lib/libxprs.dylib is a file.
Related
i am new to liferay and is managed to start the liferay sever by setting the environment variable, but when i create a liferay plugin project it doesnt work and shows
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\JDK1.7.0_79;
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
whereas the server is running correctly due to correct path of java_home
please help
In Windows, processes cache the environment variables. So if you have changed the environment variables when eclipse was open, new environment variables won't be reflected in eclipse. To solve that problem You can close eclipse and open it from a new instance of windows explorer. If this doesn't solve the problem, open it from the command line with a -clean parameter.
D:\eclipse>eclipse.exe -clean
When I run targets on ant it says it is unable to locate the variable I passed to it.
Config for environment variables :
in build.xml
<property environment="Env"/>
but I am unable to find the parameter defined parameter with
${Env.CATALINA_HOME}
where in the .bash_profile
export CATALINA_HOME=/Users/olgunkaya/development/apache-tomcat-7.0.34
and export PATH=${PATH}:$CATALINA_HOME
What can I do to achive this ?
Before you run ant, check to see if CATALINA_HOME is actually defined as an environment variable. I bet you'll find it isn't. Ant doesn't read your .profile or .bash_profile before starting, so if it's not already defined in your environment, Ant won't see it.
As you've seen opening a terminal window on a Mac doesn't necessarily guarantee that the .bash_profile file is executed. Try setting up these environment variables in .bashrc file instead.
Or, you can force .bash_profile to run by setting it as the Startup file in Terminal. Select File->Preferences from the menu, go to the Shell tab, select your default shell, and then click the Run Command checkbox and put .bash_profile in there. That will guarantee that .bash_profile is executed with each new terminal window.
I had a similar problem when referencing a custom variable, which was definitely defined in the shell spawning ant.
The solution was to EXPORT the variable when defined (in ~/.profile), so the shell would pass it to its children.
I did write my SConstruct file so I build and run the program by doing scons run
program = env.Program('build/output', Glob('build/test/*.cpp'))
env.Default(program)
env.Alias('run', program, program[0].abspath)
I can compile my program and run it without problem, but when I try to use glut and opengl in my program, I have the following error:
/home/tran/workspace/bobail/build/test/test
freeglut (/home/tran/workspace/bobail/build/test/test): failed to open display ''
After some search I found out that my compiled program need the environment variable DISPLAY to be set to DISPLAY=:0. I tried using Scons Export command but with no success so far.
Could somebody tell me how to do it.
EDIT: My program work fine if I execute it from command line instead of Scons environment.
I found out how to do it. You need to retrieve the DISPLAY global environment and import it in scons environment. This you use this environment to define the alias for running the program.
test_env = Environment()
test_env.Append(ENV = {'DISPLAY' : os.environ['DISPLAY']})
test = test_env.Program(build_path + '/test/test', Glob(build_path + '/test/*.cpp'))
test_env.Alias('check', test, test[0].abspath)
After installation completes,
the "Rails Environment configuration" window pops up:
The system cannot find the drive specified.
# Rails Environment Configuration.
Your git configuration is incomplete.
user.name and user.email are required for properly using git and services such
as GitHub ( http://github.com/ ).
Please enter your name, for example mine is: Wayne E. Seguin
After setting my name, following error occurs:
error: could not lock config file H:\/.gitconfig: No such file or directory
Should I really have H:/ mapped to be able to install Rails?
UPD: I looked into c:\RailsInstaller\Ruby1.9.2\setup_environment.bat and found it uses HOMEDRIVE and HOMEPATH, I had no such environment variables. I added those, still it didn't helped.
UPD2: Still, I could run rails after installation. Meanwhile, I installed it on my virtual Ubuntu.
UPD3: #Luis: thank you, that must be the reason. Although I have set environment variable HOMEDRIVE to correct one, still, if I run "set homedrive" in cmd, it gives out wrong value.
The issue is that setup_environment.bat look for those environment variables.
Please see this post at the RailsInstaller list:
https://groups.google.com/group/railsinstaller/browse_thread/thread/2337bfed4557f3f1
While the error is not the same, it might be associated to the same environment variables.
imagemagic and wkhtml are available in users/mithin
I have tried setting the path in profile file.
This is the content of .profile :
export PATH="/usr/bin:/usr/local/bin:$PATH"
export PATH="/usr/local/mysql/bin:$PATH"
export PATH="/Users/mithin/:$PATH"
export PATH="/Users/mithin/ImageMagick-6.6.7/bin:$PATH"
When I try to run "identify" in terminal it runs properly
And when I try to run my Ruby on rails project it gives error.
Similar things happen with "wkhtmltopdf"
in terminal it runs properly
but in ror output it gives :
sh: wkhtmltopdf: command not found
Can anyone please point my mistake ?
For Paperclip to find the commands outside of the default install location, add the following to the appropriate file within /config/environments/
Paperclip.options[:command_path] = "/Users/mithin/ImageMagick-6.6.7/bin"