4 Replies Latest reply: Jan 11, 2010 1:04 PM by va2m
va2m Level 1 (0 points)
My MAC (PowerBook G4) doesn't start because of a error.
The Mac OSX (10.4) went is strat the Mac it appears an error in the terminal (Unix/Dos like command terminal) with the fowling message:

-sh: /etc/profile:line 1: syntax error near unexpected token 'newline'
-sh: /etc/profile:line 1: '<?xml version="1.0" encoding="UTF-8"?>'
-sh-2.05b#


I have open the file "profile" and it it is not complete.
Can anyone help me?

Thanks

PowerBook G4, Mac OS X (10.4.11), 1.5 GHz - 1.5GB DDR
  • BDAqua Level 10 (122,232 points)
    Here's my...

    /private/etc/profile



    # System-wide .profile for sh(1)

    if [ -x /usr/libexec/path_helper ]; then
    eval `/usr/libexec/path_helper -s`
    fi

    if [ "${BASH-no}" != "no" ]; then
    [ -r /etc/bashrc ] && . /etc/bashrc
    fi

  • va2m Level 1 (0 points)
    Thanks for your quick answer.
    I could not found the solution yet. I have so many doubts at this moment, and the problem remain.

    Where do I put that script? In the /private/etc/profile?

    But I can't change the file because it is read-only file system. How can I change the file permissions so I can write the code you sent to me for the file /private/etc/profile?

    Can you help me?
    Thank you
  • BDAqua Level 10 (122,232 points)
    OK, restart your computer, hold down Command-s and type in the following:

    /sbin/fsck -fy Enter

    /sbin/mount -uaw Enter

    That'll make it read & writable.

    Hopefully another User will drop n on how to use Pico or whatever the built in Editor is.
  • va2m Level 1 (0 points)
    I have tried this but the file still changed, I don't know why.

    Now I have installed the mac osx from Zero, it was not easy and a lost a lot of files and information.