How To Save Path when setting new env variable!!

Hello all,
I am trying to learn how to properly include something in my path. When I run the command echo $PATH, I get /Xcode3.12/usr/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbi n:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/ opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin,,,,,how ever, as soon as I leave the Terminal and relaunch it and retype the echo $PATH command I no longer see what I just included in the path before logging out. This is what i do first:
export PATH=/Xcode3.12/usr/bin:${PATH}
export PATH
export MANPATH=/Xcode3.12/usr/share/man:{MANPATH}
export PATH
After typing this in the Terminal, I exit the Terminal and it is no longer there. Can anyone explain to me how I go about saving this so it remains permanently part of the PATH. The reason why I'm asking about this is I am trying to install OpenMotif and it is asking me to add the lib path to the DYLDLIBRARYPATH envi.,, I have no idea what this is. Any help would be greratly appreciated.
Best Regards,
freesparks

freesparks wrote:
I did as you said and now each time I launch a new Terminal window this is what I'm getting:
Last login: Thu Feb 18 15:36:30 on console
-bash: /sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin: /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/op t/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R 6/bin:/Xcode3.12/usr/bin:/Xcode3.12/usr/share/man: No such file or directory
You are going to have to post the contents of your .bash_profile file. Make sure to put it between two lines of:
so it will display nicely here in the forums.
Is this normal? And, if it isn't how do I undo it? This is the result ourcing the new .bash_profile file.
It isn't normal. You have some duplicates in there. Still, you have at least two different ports packages in there. Even when correct, your path is going to be pretty long.
You normally shouldn't source .bash_profile. It is loaded automatically when you login. If you keep source-ing it, it will just keep adding junk to your path and other variables.
When hacking around on these files, it is best to keep several (or at least two) terminal windows open. That way, you can hack up a file, then open a new window to check it out. If that new window hangs entirely, you still have one functional window where you can fix it.
checking for Motif headers... configure: error: ** NO MOTIF HEADERS FOUND ** install Motif development headers or use --with-motif-includes to specify location of Xm/Xm.h
sudo /opt/local/bin/port install curl imagemagick openmotif pcre db42 lcms proj gdal libpng libxml2 shapelib libgeotiff
That sounds like you are doing my job!
You don't need curl, it comes with the OS. You don't need libxml2, that comes with the OS too. Same for pcre.
I know imagemagick builds right out of the box on MacOS X. I'm still not convinced you need openmotif. If you do, doug has posted a link to the official installer package for it.
Error: You cannot install fontconfig for the architecture(s) x86_64 because
Error: its dependency expat only contains the architecture(s) i386.
It sounds like the ports packages are all screwed up.
I wasn't kidding about you doing my job. Those are all the tools I use on a daily basis. Normally I work in Linux, but I am supposed to be getting a new Mac soon that I can use for local development. I plan to be building all those tools on my machine, but I won't use any porting package. So, I'll be glad to help you install them, because I need to install them myself (I've already done ImageMagick - it was easy). But I can't fix bugs in the ports packages.

Similar Messages

  • How to save ringtones onto my new itunes library

    how to save ringtones onto my new itunes library

    iTunes: Syncing media content to iOS devices and iPod - http://support.apple.com/kb/HT1351 - detailed example: https://discussions.apple.com/message/18860187

  • How to save message when getting "email not responding"

    how to save message when getting "email not responding"

    How could you even know if you have a message if the email account isn't responding?
    Quit the mail app and reboot your iPad.
    Tap the home button once. Then tap the home button twice and the recents tray will appear at the bottom of the screen. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the mail icon. Tap the home button twice.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • How to save passwords. Setting already selected but still does not save.

    How to save passwords. Setting already selected but still does not save. Web site does allow password saving.

    Could you try a fake username and password on another site, and see if you can save there? You can use this website's login form at [https://support.mozilla.com/tiki-login.php] to test.
    Let me know the result of doing this, and whether any password-related errors appear in Tools->Error Console

  • Setting new environment variable on Linux

    {noformat}I need to set new environment variable on my linux machine from inside my code. I am using csh and the command works fine from command line:
    setenv IFConfigLocation4 /home/username/myfile.xml
    But when i try the same thing from Java code it does not seem to have any effect. here is my code:
    import java.util.*;
    import java.io.*;
    public class CDE_parser_methods{
    public static String fileParse(String inFile, String parserName, String outFile, String CMConfig_locale)
    String parsed = "SUCCESSFUL";
    System.out.println("Parsing file..." + "\nParser name: " + parserName +"\nInput file name: " + inFile + "\nOutput file name: " + outFile + "\nCMConfig file is: " + CMConfig_locale);
    System.out.println("Current Java version: " + System.getProperty("java.version"));
    try
              String cmd[]={"/bin/csh", "-c", "setenv IFConfigLocation4 " + CMConfig_locale};
              Process proc = Runtime.getRuntime().exec(cmd);
              int exitVal= proc.waitFor();
              System.out.println("Value of setenv command is: " + exitVal);
              String cmd2[]={"/bin/csh", "-c", "env"};
              Process proc2 = Runtime.getRuntime().exec(cmd2);
              InputStream instr = proc2.getInputStream();
              InputStreamReader inread = new InputStreamReader(instr);
              BufferedReader buf = new BufferedReader(inread);
              String line=null;
              while((line=buf.readLine()) != null)
                   System.out.println(line);
              int exitVal2= proc2.waitFor();
              }catch(CMException cme){
                   System.out.println("Issue when trying to executing parse command, details: " + cme.getMessage());
                   System.out.println("Description of the issue is: " + cme.getDescription());
                   parsed = "FAILURE: " + cme.getDescription();
              }catch(Exception e){
                   System.out.println("Uncought exception, details: " + e.getMessage());
                   parsed = "FAILURE: " + e.getMessage();
         return parsed;
    public static void main(String[] args) {
         String results=CDE_parser_methods.fileParse("/opt/itemfield/ServiceDB/Project2/Mapping_for_Account_Number_Structure_ITS_Input_File.xls","MappingforAccountNumberStructure","/opt/itemfield/ServiceDB/Project2/test_ws_44.xml","/home/rvenishe/CMConfig.xml");
         System.out.println("Result of fileParse call is: " + results);
         }The out put of my env command does NOT contain system variable "IFConfigLocation4". Any ideas? {noformat}

    Environment variables and their values set from within a user process has their scope and lifetime limited to the process and its subprocesses. See java.lang.ProcessBuilder class and its API documentation for setting env for a subprocess that will be started by a ProcessBuilder instance. Even in the C programming we have the same limitation for the environment.
    Since they are not globally set, system command like env or Java method like System.getenv() can't see them.

  • New to Photoshop;Viewing TV and want to save to MY Library to view later. Can't figure out how to save. When I open or click on My Library it shows I need to sign in and within a few seconds it shows my sign in but nothing changes on page.

    Trying to figure out how to save Adobe TV episode as I am new to Photoshop and need insruction... trying to open & save to My Library to view later. It instructs me to sign in but I am already signed in. Anyone know how?

    Those are the instructions for your computer's iTunes (i.e. using the Store menu at the top of your computer's iTunes and selecting 'View My Account' on it). If you are doing it on your iPad then are you following the instructions for iOS devices :
    To unhide your purchases
    Depending on the content type, open the App Store, iBooks, or iTunes Store on your device.
    Scroll to the bottom of the main page.
    If you're not already signed in, tap Sign In.
    Tap your Apple ID name, then tap View Account.
    Scroll down on the Account pane, and tap Hidden Purchases.
    Locate the item you would like to unhide then tap the Unhide button.

  • How to save/maintain shuffle setting

    Not sure if this is a "feature" or a bug, but if a playlist is set to 'shuffle' and I go and listen to a podcast, when I go back to the initial playlist, shuffle is no longer on. I've replicated this numerous times, and a buddy of mine did the same on his iPhone 3GS -- which leads me to believe it is a part of the software and not unique to my iPod.
    Is there any way to get it to keep its playlist settings? My old iPod (circa 2004) actually kept shuffle on until I turned it off regardless of what folder/playlist I was in, but my new one ... not so much.

    I know how to turn shuffle on, that wasn't the question. My question was/is how do I save the shuffle setting with respect to a playlist, because every time I play a podcast and go back to the playlist, shuffle is turned off. Since I listen to my iPod in the car (and the iPod is in the glove box), the only way to turn shuffle back on is to pull over, which is a PITA.

  • 6500 classic: how to save "White balance" setting ...

    Hello, when I activate the camera, the image looks like filled with blue, so I need to go to camera settings, click "White balance", and select "Daylight" instead of "Automatic" - now the picture will be perfect. But next time when I activate the camera, I should repeat this step again.
    How to save "White balance" settings to "Daylight" forever?

    Unfortunately it's not possible.
    The setting will only be effective for one session. Once you close the camera application they will revert to default. 
    ...who's more foolish?, the fool or the one who follows him?... ovi-wan

  • PSE 11 - How disable Save in Version Set

    How can I default the Save in Version Set checkbox to unchecked so I do not have to remember to uncheck it when I save. I _never_ want to create a version set. Thanks.

    I don't think you have an option to disable "save in version set".

  • How to print  logo when ever new customer arrises?

    hi friends
    i have range of customers . i have to print logo when ever new customer arrises . if the customer data continues in 2nd page i dont have to print logo. how to get it ?
    regards
    thiru

    hi,
    are you using smartform or script for printing ?
    write the condition in program lines using the control commands ie on change of customer.
    Take separete window for logo and print that in the first page so that if the customer data extend as to next page logo window will not appear in the next window.
    and is there any table maintained for logos and customer details. if its maintained it would be easy to put the condition in the print program itself or else you can hadle it in the form.
    Regards,
    Prathima.

  • How to paste paths to a new layer ??

    I`m having trouble pasting paths to a new layer from a current layer....
    I select the paths - edit/cut - select the new layer as visible and blue highlighted in the layers palette - edit/paste... the paths get pasted back to the previous layer instead of the new layer...
    I would also like it if I could use "paste in front" to have them paste into the same xy location in the new layer.

    On the layers palette, right click on the three little lines at the top
    At the bottom of the list you will see an option of "Paste remembers layers"
    Untick it
    I'll bet that solves it

  • Do I need to set  system env variables for weblogic and SOA server installation?

    Hi All,
       I already have two weblogic application servers on my machine(that were installed by others).
    I observed some environment variables were also set in System variables(ORACLE_HOME,WEB_SERVER_HOME etc) section in Env variables section(Start Menu---> Computer --> properties ---).But why do we need to have system environment variables wherein we already have those variables in files like setDomainEnv.bat or/and setSOADoaminEnv.bat for each server.
    And one more thing system variables will be applicable for all servers(the whole machine) right.It may spoil the installation of new servers and present servers as variables should be unique to each server.
        I want to install weblogic and SOA server installation.
    So Can I remove the existing system variables(as they will applicable for every server) and install weblogic and SOA server installation without setting up the environment variables?
    Especially I have multiple Weblogic servers,In that case how it would be to have environment variables(JAVA_HOME,WL_HOME,ORACLE_HOME etc)?
    Please guide me on this to installl SOA suite .
    Thanks in advance

    Hi All,
       I already have two weblogic application servers on my machine(that were installed by others).
    I observed some environment variables were also set in System variables(ORACLE_HOME,WEB_SERVER_HOME etc) section in Env variables section(Start Menu---> Computer --> properties ---).But why do we need to have system environment variables wherein we already have those variables in files like setDomainEnv.bat or/and setSOADoaminEnv.bat for each server.
    And one more thing system variables will be applicable for all servers(the whole machine) right.It may spoil the installation of new servers and present servers as variables should be unique to each server.
        I want to install weblogic and SOA server installation.
    So Can I remove the existing system variables(as they will applicable for every server) and install weblogic and SOA server installation without setting up the environment variables?
    Especially I have multiple Weblogic servers,In that case how it would be to have environment variables(JAVA_HOME,WL_HOME,ORACLE_HOME etc)?
    Please guide me on this to installl SOA suite .
    Thanks in advance

  • Setting NLS_LANG env variable for adcmctl.sh

    How do set the NLS_LANG env variable specifically for adcmctl.sh? Currently it gets overridden by the NLS_DATE_LANG env variable. I'd like to set it to blank if possible.
    Thanks in advance!

    Unfortunately there is no way to change the session character set on the fly .
    So you are pretty limited on what you can do ..
    1. Start up multiple instances of the report server on your machine, one per langauge.
    2. Try Oracle Report which support UTF8.

  • How the Replacement path is working in the variable.

    Hi SDNers,
    Can any one give the scenario, how the processing type "Replacement path" is working in the variable.
    Thanks,
    Satya

    Hi,
    For example..
    If you want to find the Ton 10 customers for company you will develop a query and based on some condition you will get the top 10 customers.. and again if you want to see the top 10 customers sales or products what they purchased then you go for another query to develop. In this case.
    In the second query create a variable on Customer object with Replacement path as processing type in that you have to mention the previous query (i.e., top 10 customers). Then it gets the values of top 10 customers from the previous query and generates the report for requirement you want.
    Hope this is clear.
    Veerendra.

  • How to save memory when processing large result set

    I need to dump multi millions of rows of data into excel files
    I query the tables and open excel to write in
    The problem is even I chopped the result into hundred files, close excel completely after 65536 rows, the memory usage keeps going up as the result set is looped and at one point hit the heap size
    How can I release the memory has been used in the result set?
    Thank you

    mycoffee wrote:
    936517 wrote:
    I think resultSet.close() will do what you want (you shouldn't have to set resultSet=null when you're done with it).
    You can't force the garbage collector to run and reclaim memory. It uses an intelligent algorithm to do so .
    I question why your project is sending millions of records to excel. Who is going to read a 10,000 page excel document(s)?
    Instead, I suggest you provide a (intelligent) filter mechanism to allow users to get a subset of data to send to an excel document rather than all data. For example: instead of sending him the entire telephone book, have him search for results based on lastName and/or firstName. That will cut down on the number of records returned. Next, does the user really need all the columns of data in each record? That will cut it down further.
    You can search Google for 'java heap size' to increase the memory for your program. However, your 65536 limit is probably due to Excel's limitation and not your Java program.Sorry I could not explain the need,
    No. That is not issue here. I already use max heap size I can
    but I can handle it now. Open files, write directly to the file instead of holding the data and dumping all at once. I save all the overhead and it works fine even the result set still consumes almost all the memory.is it possible you are using mysql? the mysql jdbc driver has a terrible default setup in that it keeps all results for the result set in memory ! i think some of the latest drivers finally allow you to stream results sensibly, but you have to use the correct options.

Maybe you are looking for

  • JDBC Connector in SAP Netweaver for CE 7.1 EHP1 for Stored Procedures

    Hi ALL, I basically want to access the database tables in Maxdb ( R/3 System )directly in my Visual Composer V 7.1 Search tab. In the new Ehp1 it offers a JDBC system connector for connecting stored procedures. I have tried connecting using the JDBC

  • Artwork appears to be stored in two locations

    hi i'm needing a way to transfer the storage of my artwork to the external hard drive. i've added a few jpg's and they've stored on the C drive separately from the music on the X drive. how can i ensure future jpg's will save to the X drive? can anyo

  • So I have a tmobile iphone 5s and it's stuck on the white screen with black logo I tried restoring it with iTunes

    MMy phone been stuck in recovery mode tried to restore it nothing worked what can I do its at mobile iphone 5sSo I have a tmobile iphone 5s and it's stuck on the white screen with black logo I tried restoring it with iTunes & iTunes is just telling m

  • Query Assistance - Calculating percentage

    Greetings, I may just be looking at this for way to long and not seeing the proper coding/syntax required to accomplish what it is I am trying. I have one query to figure out an overall count for each organization in a database. I then have a second

  • SQL statements

    Hey, Ive been trying to insert a string variable into a SQL statement but as of yet with no luck. I know how to do it using VB but not in java. Heres a example in VB of what i need to do in java: String position = "manager"; String SQL = " Select * f