X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 15 Jan 2013 09:22 AM by  anon
environment variables setting problem in MAC OSX
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:9
New Member


--
15 Jan 2013 09:22 AM
    I have installed idl8.2 on my MAC OSX 10.8. I am now using an IDL routine package, which needs to set some environment variables. I set these environment variables in .bash_profile, e.g. dir=/home/user/some_idl_package caseLIB=$dir/lib caseEXE=$dir/examples caseDATA=$dir/data export IDL_PATH=+$dir:$IDL_PATH export PATH IDL_PATH caseLIB caseEXE caseDATA After source .bash_profile, idl woks well in terminal model. But when I used idlde, these environment variables can not be found. For example, when one routine calls GETENV('caseLIB'), the output of idlde is null. How to figure out this problem? Thanks!

    Deleted User



    New Member


    Posts:
    New Member


    --
    15 Jan 2013 11:49 AM
    Hi there, Try adding those configuration lines into .bashrc instead. Will that help? Cheers, Fernando ExelisVIS

    Deleted User



    New Member


    Posts:9
    New Member


    --
    15 Jan 2013 07:36 PM
    Thank you for your reply. But it does not work by adding these into .bashrc. Best

    Deleted User



    New Member


    Posts:
    New Member


    --
    27 Feb 2013 11:26 AM
    What I do is I make an Applescript (using the AppleScript editor in the /Applications/Utilities folder) with the one line: do shell script "source ~/.bash_profile ; nohup open -a idlde.darwin.x86_64.app" Save as an application, and then you can double-click on that instead of the /Applications/exelis/IDLDE icon
    You are not authorized to post a reply.