Discussion:
[Fink-beginners] command /sw/bin/pathsetup.sh, does not seem recognise proper shell
francis c. ayayen
2004-05-04 22:05:23 UTC
Permalink
Hi
i hope someone can help me with this question
after installing the fink from the source code
i tried several times to run the:
"/sw/bin/pathsetup.sh"
i get:
"your environment seems to be correctly set up for fink already"
however i can't run fink by just typing sudo dselect which gives me a:
"command not found"
it runs only if i do:
"sudo /sw/bin/dselect"

when i run:
"sudo /sw/bin/pathsetup.sh"
the message box tells me that my login shell is 'tcsh' while i'm
running 'bash'

i put:
". /sw/bin/init.sh" in my ".bash_profile" file it seems to have no
effect whatsoever

I think this other problem might be related to the above
when running fink using "/sw/bin/dselect"
i can't run the [U]pdate:
i get this:
"/sw/lib/dpkg/methods/apt/update: line 1 apt-config command not found"
"update available list script return error exit status 127"

if anybody can help i would greatly appreciate
thanks
Martin Costabel
2004-05-05 04:44:04 UTC
Permalink
Post by francis c. ayayen
Hi
i hope someone can help me with this question
after installing the fink from the source code
"/sw/bin/pathsetup.sh"
"your environment seems to be correctly set up for fink already"
"command not found"
"sudo /sw/bin/dselect"
Could you show the output of the two commands

echo $PATH
sudo echo $PATH
Post by francis c. ayayen
"sudo /sw/bin/pathsetup.sh"
the message box tells me that my login shell is 'tcsh' while i'm running
'bash'
Well, when you run a command using sudo, the user is changed to "root".
What it tells you is that the user "root" has tcsh as a login shell. You
can verify the login shells via netinfo, for example by running the command

nidump passwd .

Then look at the lines corresponding to root and to yourself. At the end
of the lines you see the login shell.

You should therefore *not* run the pathsetup command as root, that is,
never run it using sudo.
Post by francis c. ayayen
". /sw/bin/init.sh" in my ".bash_profile" file it seems to have no
effect whatsoever
There are lots of other possible shell startup files in your home
directory and in /etc that can change the PATH environment variable.
Check in particular /etc/bashrc and ~/.bashrc.
--
Martin
Post by francis c. ayayen
I think this other problem might be related to the above
when running fink using "/sw/bin/dselect"
"/sw/lib/dpkg/methods/apt/update: line 1 apt-config command not found"
"update available list script return error exit status 127"
if anybody can help i would greatly appreciate
thanks
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Fink-beginners mailing list
https://lists.sourceforge.net/lists/listinfo/fink-beginners
Loading...