.bash_profile, important question

Discussion in 'General Mac Discussion' started by abhishekit, Jul 8, 2004.

  1. abhishekit macrumors 65816

    abhishekit

    Joined:
    Nov 6, 2003
    Location:
    akron , ohio
    #1
    Hi

    I was installing tomcat and struts. The problem is when I save the new path variable in .bash_profile, and then goto prefs of terminal to set it to use the file, I cant select it!! As shown in the picture, in the bottom most field, the select button cant find .bash_profile because it starts with '.'
    And I cant manually enter the path in the field, its disabled. :confused:
    I would really appreciate any help.

    Thanks
     

    Attached Files:

  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    You don't have to do this. The Terminal SHOULD be smart enough to detect the change and use the new file. However, I've also had trouble getting Terminal to recognize .bash_profile. If you put the line(s) in .profile instead, it should work just fine (it does for me, anyway). You can simply use the mv (or cp) command to move/copy .bash_profile to .profile.
     
  3. abhishekit thread starter macrumors 65816

    abhishekit

    Joined:
    Nov 6, 2003
    Location:
    akron , ohio
    #3
    EDIT: you were correct. It did automatically take the .bash_profile. Actually I had done some error in the PATH declaration, so it was taking it and still giving the error.
    Thanks a lot for your speedy help.:)

    cheers
     

Share This Page