PDA

View Full Version : Problema con Terminal


* seavoN
21-07-2007, 14:17
Ciao a tutti ragazzi.
Purtroppo mi sono incasinato col terminal modificando il .profile all'interno della Home...

Ora ogni volta che apro il terminal mi viene fuori questo:

Last login: Sat Jul 21 15:08:18 on console
Welcome to Darwin!
-bash: {rtf1macansicpg10000cocoartf824cocoasubrtf420: command not found
-bash: /Users/feed/.profile: line 2: syntax error near unexpected token `}'
-bash: /Users/feed/.profile: line 2: `{\fonttbl\f0\fmodern\fcharset77 Courier;}'
feedmac:~ feed$

e mi rende impossibile eseguire comandi tipo fink o qualsiasi altro..

Se vi può servire tutto questo è successo dopo aver eseguito queste operazioni:

The Long, Fink-Free Version (This is probably you)

Install Xcode - Make sure you have a recent version of Xcode (2.3 or 2.4.1). If you don't, get it from http://developer.apple.com/ (it's a free ~900 MiB download after registering). If you just installed it from your Apple disks, you may need to get the update from the web.
Download and install svn (Subversion) from http://metissian.com/projects/macosx/subversion/
Open up TextEdit, then in the Format menu choose Make Plain Text. Type in:
PATH=$PATH:/usr/local/bin
export PATH
Save the file as profile.txt in your home folder.
Open up a terminal, and type
mv profile.txt .profile

Riuscireste a ristabilire tutto come prima? Grazie :)

MacNeo
21-07-2007, 14:53
riapri il .profile e controlla se hai fatto qualche errore di battitura

apri il terminale, scrivi pico .profile e controlla sia tutto apposto.
correggi, poi ctrl-o per salvare e ctrl-x per chiudere pico.

* seavoN
21-07-2007, 16:43
eh.. "controlla se è tutto apposto" mi rimane difficile =)

Copio qua quello che c'è scritto:

{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420
{\fonttbl}
{\colortbl;\red255\green255\blue255;}
\paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh8400\viewkind0
}
test -r /sw/bin/init.sh && . /sw/bin/init.sh

MacNeo
21-07-2007, 18:01
non avevi convertito in Plain Text prima di salvare il file a quanto pare :rolleyes:

cancella tutta quella roba con le graffe e codici vari, deve esserci scritto solamente
PATH=$PATH:/usr/local/bin
export PATH

* seavoN
22-07-2007, 17:41
Grazie mille MacNeo, tutto risolto :)