Reinstalling Apple Terminal?

Discussion in 'macOS' started by bloodycape, Apr 17, 2007.

  1. bloodycape macrumors 65816

    Joined:
    Jun 18, 2005
    Location:
    California
    #1
    How would I go about reinstalling apple terminal? I did a quick search, but i found nothing. I would assume have to install terminal since I get this error? - grep: /sw/etc/fink.conf: No such file or directory

    or does this maybe mean I have to install fink?
     
  2. epochblue macrumors 68000

    epochblue

    Joined:
    Aug 12, 2005
    Location:
    Nashville, TN
    #2
    That would probably be a fink issue, not a Terminal issue. What are you trying to install?
     
  3. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    Reinstalling the terminal will do nothing. It is simply a host for a command shell. One of your init scripts is trying to use a file that does not exist. Either install fink or checkout your .login, .profile and .bashrc files in ~.
     
  4. bloodycape thread starter macrumors 65816

    Joined:
    Jun 18, 2005
    Location:
    California
    #4
    could you explain how i can do that. The fink site was not to clear.
     
  5. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #5
    Unless you want fink I'd not install it. If open the terminal and do

    Code:
    ls -al ~/
    
    I can tell you which file or files are likely to be causing this...
     
  6. bloodycape thread starter macrumors 65816

    Joined:
    Jun 18, 2005
    Location:
    California
    #6
    If you can please do as it would be appreciated.
     
  7. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #7
    You have to do the command above and post the output. I'm not psychic.
     
  8. bloodycape thread starter macrumors 65816

    Joined:
    Jun 18, 2005
    Location:
    California
    #8
    oh okay i see.
     
  9. bloodycape thread starter macrumors 65816

    Joined:
    Jun 18, 2005
    Location:
    California
    #9
    Mactel:~ alex$ ls -al ~/
    total 424
    drwxr-xr-x 26 alex alex 884 Apr 18 15:23 .
    drwxrwxr-t 5 root admin 170 Jan 14 18:50 ..
    -rw-r--r-- 1 alex alex 3 Oct 31 20:14 .CFUserTextEncoding
    -rw-r--r-- 1 alex alex 12292 Apr 2 17:12 .DS_Store
    drwx------ 2 alex alex 68 Apr 18 15:23 .Trash
    -rw------- 1 alex alex 0 Apr 18 12:47 .Xauthority
    -rw------- 1 alex alex 3178 Apr 18 12:47 .bash_history
    -rw-r--r-- 1 alex alex 166757 Feb 14 22:59 .fonts.cache-1
    drwxr-xr-x 34 alex alex 1156 Nov 27 23:32 .gimp-2.2
    -rwxr----- 1 alex alex 177 Oct 31 20:32 .login
    -rw-r--r-- 1 alex alex 30 Jan 7 18:44 .lpoptions
    -rw-r--r-- 1 alex alex 1931 Feb 14 23:20 .mime.types
    drwxr-xr-x 3 alex alex 102 Mar 29 12:05 .mozilla
    drwxr-xr-x 3 alex alex 102 Nov 4 17:08 .mplayer
    -rwxr----- 1 alex alex 227 Nov 4 00:34 .profile
    -rw------- 1 alex alex 1374 Nov 27 23:18 .recently-used
    drwx------ 3 alex alex 102 Nov 8 17:29 .thumbnails
    -rw-r--r-- 1 alex alex 1063 Jan 14 15:17 Data Rescue II Report.txt
    drwx------ 46 alex alex 1564 Apr 18 16:01 Desktop
    drwx------ 11 alex alex 374 Mar 29 12:08 Documents
    drwx------ 34 alex alex 1156 Dec 24 00:03 Library
    drwx------ 5 alex alex 170 Dec 16 21:37 Movies
    drwx------ 6 alex alex 204 Dec 21 11:48 Music
    drwx------ 7 alex alex 238 Jan 28 12:30 Pictures
    drwxr-xr-x 4 alex alex 136 Oct 31 20:14 Public
    drwxr-xr-x 5 alex alex 170 Oct 31 20:14 Site
     
  10. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #10
    Great. The files that get used when you start a shell are .login and .profile. One of those files will contain a reference to that directory. If you type

    Code:
    open .login .profile
    
    the files should open in your default editor. If you can see the obvious line then try deleting it and resaving the file (it might be wise to keep a backup copy).
     
  11. bloodycape thread starter macrumors 65816

    Joined:
    Jun 18, 2005
    Location:
    California
    #11
    Thank you for the help as I am newb when it comes to this matter.

    if i am suppose to be looking for grep: /sw/etc/fink.conf: in one of those files, I do not see that line at all.

    .log i see
    ##
    # DELUXE-USR-LOCAL-BIN-INSERT
    # (do not remove this comment)
    ##
    echo $PATH | grep -q -s "/usr/local/bin"
    if $status == 1 then
    set path = ( "usr/local/bin" $path )
    endif


    .profile i see
    ##
    # DELUXE-USR-LOCAL-BIN-INSERT
    # (do not remove this comment)
    ##
    echo $PATH | grep -q -s "/usr/local/bin"
    if [ $? -eq 1 ] ; then
    PATH=$PATH:/usr/local/bin
    export PATH
    fi

    test -r /sw/bin/init.sh && . /sw/bin/init.sh
     
  12. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #12
    Check out that last line. If a file at /sw/bin/init.sh exists and is readable then that will be executed. /sw means it's fink. If you don't use anything fink based comment out this line (put a # as the first character on the line). If that seems to be cause problems remove the #
     
  13. bloodycape thread starter macrumors 65816

    Joined:
    Jun 18, 2005
    Location:
    California
    #13
    what are some popular fin software. I know installed for a reason but that was back when i first got my comp and I think it was so I can use openofice but that is x11. That file is a text file, so I should just remove the line test -r /sw/bin/init.sh && . /sw/bin/init.sh and replace it with #? Sorry I am newbish at fink and command.

    Thank you.
     

Share This Page