no me ha salido, tu mensaje era demasiado extenso y no se si he pegado
el
PATH que corresponde, si pudieras ponerme solo el
PATH, te lo agradecerÃa. Asi esta mi [.profile] y no me funciona:
export
PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH
Your previous .profile (if any) is saved as .profile.mpsaved
Setting the path for MacPorts.
#export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0
export EDITOR=/usr/bin/pico
Muchisimas gracias
El dÃa 29 de abril de 2008 12:39, Dani D. [email protected]
escribió:
Andrés
2008/4/29 Andrés gutiérrez [email protected]:
export
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH
Your previous .profile (if any) is saved as .profile.mpsaved
Setting the path for MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0
export EDITOR=/usr/bin/pico
Tu .profile debe quedar asà ( el PATH no debe quedar partido en dos
lÃneas,
aunque en mi correo lo haga ):
export PATH=/opt/local/bin:/opt/local
/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH
Your previous .profile (if any) is saved as .profile.mpsaved
Setting the path for MacPorts.
export DISPLAY=:0.0
export EDITOR=/usr/bin/pico
Fijate que hemos combinado las dos lÃneas que definen el PATH en una
sola.
- Graba el fichero y sal del editor.
- Cierra la consola y vuelvela a abrir.
- Teclea “gem --help”.
Ahora debe funcionarte.
Creo que esta es la causa de tu problema (de la página de manual de Bash):
When bash is invoked as an interactive login shell, or as a
non-inter-
active shell with the --login option, it first reads and executes
com-
mands from the file /etc/profile, if that file exists. After
reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and
~/.profile,
in that order, and reads and executes commands from the first
one that
exists and is readable. The --noprofile option may be used
when the
shell is started to inhibit this behavior.
Así que si tienes .bash_login o .bash_profile no le está haciendo caso
a .profile. Deberías poner toda tu configuración en el primero
(.bash_profile) y eliminar los otros dos para que no provoquen líos.
—.bash_profile—
export
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0
export EDITOR=/usr/bin/pico
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info
—EOF—
(Cada uno de los export en una sola línea).
Suerte.
Joder!!! muchas gracias
Creo que esta es la causa de tu problema (de la página de manual de
Bash):
When bash is invoked as an interactive login shell, or as a
non-inter-
active shell with the --login option, it first reads and executes
com-
mands from the file /etc/profile, if that file exists. After
reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and
~/.profile,
in that order, and reads and executes commands from the first one
that
exists and is readable. The --noprofile option may be used when
the
shell is started to inhibit this behavior.
Asà que si tienes .bash_login o .bash_profile no le está haciendo caso
a .profile. DeberÃas poner toda tu configuración en el primero
(.bash_profile) y eliminar los otros dos para que no provoquen lÃos.
—.bash_profile—
export
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0
export EDITOR=/usr/bin/pico
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info
—EOF—
(Cada uno de los export en una sola lÃnea).
Era eso, lo unico que no he eliminado nada. pero funciona. creo. Muchas
gracias
2008/4/29 Daniel R. Troitiño [email protected]: