The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - Newcomers (http://hintsforums.macworld.com/forumdisplay.php?f=15)
-   -   Panther and Fink (http://hintsforums.macworld.com/showthread.php?t=16269)

sao 11-01-2003 12:42 AM

jiclark,

The package zsh is probably in unstable. Enable unstable in your /sw/etc/fink.conf at the Trees: line write unstable/main unstable/crypto, like this:
Code:

Trees: local/main unstable/main unstable/crypto stable/main stable/crypto local/bootstrap
Then, run:

'fink selfupdate'

'fink index'

After, to see what packages you can install, run:

'fink list'

jiclark 11-01-2003 02:00 AM

sao,

When I run the above code, I get:

Trees:: Too many arguments

Quote:

The package zsh is probably in unstable. Enable unstable in your /sw/etc/fink.conf at the Trees: line write unstable/main unstable/crypto, like this...
Man, that is complete greek to me! And why would zsh be in "unstable"??? It's not stable?

It's late here for me (and don't know what it is for you!), so I'm off to slumberland. I appreciate you trying help me sort this out, so I'll look for a reply in the morning...

Thanks again,
John-o

sao 11-01-2003 02:49 AM

Quote:

jiclark wrote:
that is complete greek to me!
I understand... :)

You need to edit the file 'fink.conf' using an editor like pico. Follow these steps:

From terminal.app run:

% cd (to go to your home directory)

% cd /sw/etc (to go to the /sw/etc directory)

% pico fink.conf (to open the fink.conf file)

Once the file is open, go to the Trees: line and add:

unstable/main and unstable/cryto

After you wrote those lines in the Trees: line it should look like this:
Code:

Trees: local/main unstable/main unstable/crypto stable/main stable/crypto local/bootstrap
Press Control-o then press Return and then press Control-x to save the file and exit from the pico editor.

Then run 'fink selfupdate' , 'fink index' .

And don't worry, fink zsh package works very well.

jiclark 11-02-2003 01:05 AM

still no go...
 
sao,

I've done as you say, but it *still* isn't finding any zsh package to install! What next?

Also,

Quote:

'fink selfupdate-rsync' is the recommended method now, as it's more efficient, and generally the mirrors get updated quicker than anonymous CVS.
This is confusing to me, especially since I get mixed messages in the terminal when I run 'fink self-update-rsync'. Do I want my default 'selfupdate' method to be rsync or cvs?!? You say the former, but the info in the Terminal seems to implay the opposite...

This is all very frustrating, I must say.

I haven't given up yet though!!

John-o

sao 11-02-2003 04:34 AM

jiclark,

Running the command 'fink selfupdate-rsync' will switch you to the new update method and you should run it *only* the first time. Once you have switched, you just run:

'fink selfupdate'

http://fink.sourceforge.net/download/rsync-upgrade.php



Ok, let's see what is the situation now, post the result of:

fink -V
gcc -v
fink list -i rsync

And please, copy/paste here the contents of you /sw/etc/fink.conf file.


PS:
Quote:

jiclark wrote:
This is all very frustrating, I must say.
Yes, it is also difficult to learn lithuanian in a couple of days...:D ...not to give up is the right attitude :)

jiclark 11-02-2003 01:53 PM

Thanks sao,

Here's the readout for what you asked about:

fink -V:

Package manager version: 0.16.0
Distribution version: 0.6.1.cvs

gcc -v:

Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)

fink list -i rsync:

Information about 1401 packages read in 1 seconds.

[Does that all make sense?]

Oh, and here's the output of my fink.conf file:

# Fink configuration, initially created by bootstrap.pl
Basepath: /sw
RootMethod: sudo
Trees: local/main unstable/main unstable/crypto stable/main stable/crypto
local/bootstrap Distribution: 10.3
FetchAltDir: /Downloa
Mirror-cpan: ftp://ftp.funet.fi/pub/languages/perl/CPAN/
Mirror-ctan: ftp://tug.ctan.org/tex-archive/
Mirror-debian: ftp.debian.org
Mirror-gimp: ftp://ftp.gimp.org/pub
Mirror-gnome: ftp://ftp.gnome.org/pub/GNOME/
Mirror-gnu: ftp://ftp.gnu.org/gnu
Mirror-kde: ftp://ftp.kde.org/pub/kde/
Mirror-master: http://distfiles.opendarwin.org/
Mirror-rsync: rsync://master.us.finkmirrors.net/finkinfo/
Mirror-sourceforge: http://west.dl.sourceforge.net/sourceforge/
MirrorContinent: nam
MirrorCountry: nam-us
MirrorOrder: MasterFirst
ProxyPassiveFTP: true
Verbose: 1
SelfUpdateMethod: cvs

[SelfUpdateMethod is cvs because I've tried both rsync (first) and cvs, to see if that helped 'find' the zsh package... I will change it back, per your recommendation.]

And thanks, once again for all your help. I shall try to remember that this is like learning lithuanian...

John-o

P.S. I hope my delays in responding are not too annoying. If it would be better for you if we could do this while we're both at the Terminal at the same time, let me know what is a good time period for you. I'm in the Mountain time zone in the US. I think it's GMT -7 now that Daylight S(l)avings Time is over for this year... Do let me know how I can make this process as painless as possible for you!

jiclark 11-02-2003 02:00 PM

rsync vs cvs...
 
I just ran 'fink selfupdate-rsync' to change the default back to rsync. The result reminded me why I had tried cvs:

Use of uninitialized value in concatenation (.) or string at /sw/lib/perl5/Fink/SelfUpdate.pm line 528.
Use of uninitialized value in concatenation (.) or string at /sw/lib/perl5/Fink/SelfUpdate.pm line 531.
I will now run the rsync command to retrieve the latest package descriptions.

Use of uninitialized value in substitution (s///) at /sw/lib/perl5/Fink/SelfUpdate.pm line 546.
Use of uninitialized value in substitution (s///) at /sw/lib/perl5/Fink/SelfUpdate.pm line 546.
Warning: unstable/main exists in fink.conf, but is not on rsync server. Skipping.
Warning: unstable/crypto exists in fink.conf, but is not on rsync server. Skipping.
Warning: stable/main exists in fink.conf, but is not on rsync server. Skipping.
Warning: stable/crypto exists in fink.conf, but is not on rsync server. Skipping.
find . -name CVS | xargs rm -rf
rsync -az -q rsync://master.us.finkmirrors.net/finkinfo//VERSION /sw/fink/VERSION
touch stamp-rsync-live && rm -f stamp-cvs-live
Reading package info...
Updating package index... done.
Information about 1401 packages read in 17 seconds.
No packages to install.

The part where it says that 'unstable/main' and 'unstable/crypto' aren't "on rsync server" made me scratch my head...

Awaiting your response [but not until later this afternoon my time],

John-o

stetner 11-02-2003 05:23 PM

Well, line 528-531 look like this:
Code:

    527        # If the Distributions line has been updated...
    528        if (! -d "$descdir/$dist") {
    529                &execute("mkdir -p '$descdir/$dist'")
    530        }
    531        @sb = stat("$descdir/$dist");

Which kind of points to your Distribution: line, and I have no problem, and my conf looks like:
Code:

# Fink configuration, initially created by bootstrap.pl
Basepath: /sw
RootMethod: sudo
Trees: local/main stable/main stable/crypto local/bootstrap
Distribution: 10.3
Mirror-cpan: ftp://mirror.aarnet.edu.au/pub/perl/CPAN/
Mirror-ctan: ftp://ctan.unsw.edu.au/tex-archive/
Mirror-debian: http://ftp.au.debian.org/debian/
Mirror-gimp: ftp://ftp.au.gimp.org/pub/gimp/
Mirror-gnome: ftp://ftp.gnome.org/pub/GNOME/
Mirror-gnu: ftp://gnu.mirror.pacific.net.au/gnu/
Mirror-kde: ftp://download.au.kde.org/pub/kde/
Mirror-master: http://distfiles.opendarwin.org/
Mirror-rsync: rsync://master.us.finkmirrors.net/finkinfo/
Mirror-sourceforge: http://flow.dl.sourceforge.net/sourceforge/
MirrorContinent: aus
MirrorCountry: aus-au
MirrorOrder: MasterFirst
ProxyPassiveFTP: true
Verbose: 1
SelfUpdateMethod: rsync

Note the lack of a FetchAltDir: /Downloa line when compared to your fink.conf.
As well my Distribution: 10.3
line has no local/bootstrap bit.

But I have moved on from the 'bootstrap stage, but it looks like your conf file is messed up.

I was going to suggest some editting here, but since this could be tied in with the bootstrap stuff I will resist.

Sao probably knows what it does (or what it is supposed to do), and can advise when he comes back online.

sao 11-03-2003 12:16 AM

jiclark,

From man fink.conf :
Code:

local/bootstrap - packages used in the installation of fink
............
............
FetchAltDir: path
          Usually fink will store the sources it fetches in /sw/src. You can
          specify an alernate directory to look for downloaded source code in
          using this option. For example:
                FetchAltDir: /usr/src

local/bootstrap should be in the same line as the "Trees: line" as stetner pointed out in his post.

And the default folder for FetchAltDir is /sw/src. Did you changed this yourself (to /Downloa) ?

Also, it seems you don't have installed fink's rsync package. Please, run:

'fink install rsync'

You need the fink rsync package (/sw/bin/rsync) for the rsync update method to work.

And after, set-up the 'SelfUpdateMethod: rsync' in your /sw/etc/fink.conf

Then run:

'fink selfupdate'


PS: It's ok, no pain here...:)

jiclark 11-03-2003 12:41 AM

Quote:

local/bootstrap should be in the same line as the "Trees: line" as stetner pointed out in his post.

And the default folder for FetchAltDir is /sw/src. Did you changed this yourself (to /Downloa) ?
Okay, so how am I supposed to fix those???

jiclark 11-03-2003 01:00 AM

Well, 'fink.conf' is fixed (I think)...
 
Here's the content of my fink.conf file now:

# Fink configuration, initially created by bootstrap.pl
Basepath: /sw
RootMethod: sudo
Trees: local/main unstable/main unstable/crypto stable/main stable/crypto local/bootstrap
Distribution: 10.3
FetchAltDir: /sw/src
Mirror-cpan: ftp://ftp.funet.fi/pub/languages/perl/CPAN/
Mirror-ctan: ftp://tug.ctan.org/tex-archive/
Mirror-debian: ftp.debian.org
Mirror-gimp: ftp://ftp.gimp.org/pub
Mirror-gnome: ftp://ftp.gnome.org/pub/GNOME/
Mirror-gnu: ftp://ftp.gnu.org/gnu
Mirror-kde: ftp://ftp.kde.org/pub/kde/
Mirror-master: http://distfiles.opendarwin.org/
Mirror-rsync: rsync://master.us.finkmirrors.net/finkinfo/
Mirror-sourceforge: http://west.dl.sourceforge.net/sourceforge/
MirrorContinent: nam
MirrorCountry: nam-us
MirrorOrder: MasterFirst
ProxyPassiveFTP: true
Verbose: 1
SelfUpdateMethod: rsync

Look good?

Now what? I've run 'selfupdate-rsync' and 'fink index'. It seems to find more stuff, but when I run 'fink install zsh', I get "Failed: no package found for specification 'zsh'!"...

sao 11-03-2003 01:06 AM

jiclark,

Install fink package rsync.

Then, just edit with the pico editor the file /sw/etc/fink.conf as I explained to you in a post above, making sure that local/bootstrap is in the same line as the "Trees: line" and if you want to use the default /sw/src, you can just delete the line "FetchAltDir: /downloa"

Here is my fink.conf file, edit it to look the same if you want:
Code:

# Fink configuration, initially created by bootstrap.pl
Basepath: /sw
RootMethod: sudo
Trees: local/main unstable/main unstable/crypto stable/main stable/crypto local/bootstrap
Distribution: 10.3
Mirror-cpan: ftp://ftp.funet.fi/pub/languages/perl/CPAN/
Mirror-ctan: ftp://tug.ctan.org/tex-archive/
Mirror-debian: ftp.debian.org
Mirror-gimp: ftp://ftp.gimp.org/pub
Mirror-gnome: ftp://ftp.gnome.org/pub/GNOME/
Mirror-gnu: ftp://ftp.gnu.org/gnu
Mirror-kde: ftp://ftp.kde.org/pub/kde/
Mirror-master: http://distfiles.opendarwin.org/
Mirror-sourceforge: http://west.dl.sourceforge.net/sourceforge/
MirrorContinent: nam
MirrorCountry: nam-us
MirrorOrder: MasterFirst
ProxyPassiveFTP: true
Verbose: 2
SelfUpdateMethod: rsync

Then after run:
'fink selfupdate'

jiclark 11-03-2003 01:09 AM

sao,

See above. I've done all of those things. It's still not working...

sao 11-03-2003 01:11 AM

I was a bit late with my post. Ok, your /sw/etc/fink.conf looks good.

Try again just:

'fink selfupdate'

jiclark 11-03-2003 01:14 AM

Quote:

Try again just:

'fink selfupdate'
I've done that, three times now...

And, still, no zsh! Am I entering that command correctly?

'fink install zsh'

?

sao 11-03-2003 01:18 AM

jiclark,

You are right, it seems the zsh package is not there yet in the 10.3 tree. I installed it before updating to 10.3. Sorry for the long exercise.

Well, you can use bash for the moment or go back to tcsh, as you wish.

But your set up now will give you a bigger selection of packages to install and remember the rsync method is updated hourly, so the fink developers keep uploading packages constantly. The zsh package will follow soon, I hope.

Happy finking....:)

stetner 11-03-2003 01:25 AM

I just added the unstable stuff and selfupdated to see if it was there myself, and came to the same conclusion, that it is not...

Gee, thats a bit anti-climactic isn't it.... :)

Ahh well, as Sao says, it will be there eventually and at least you have it working now.

jiclark 11-03-2003 01:30 AM

You're kidding, right???
 
;)

Oh, well; educational nonetheless, I guess...

So why can't I just change to zsh right now? I won't be able to use fink from zsh if I don't install it from fink?!?! I can get into zsh right now, can't I?

[All very confusing, as I said before...]

BTW, Why is it that fink only works from within tcsh (for me)? Bash gives me 'command not found' when I enter 'fink'.

I really need to wait until zsh is available through fink, in order to fully switch to zsh and be productive with it? [You can tell I'm confused about this.]

Also, how do I make the hint from this morning about sending man pages to Preview work for me in zsh (once I've got it up and working like it's supposed to)?

Thanks again!!
John-o

stetner 11-03-2003 01:55 AM

Re: You're kidding, right???
 
Quote:

Originally posted by jiclark
;)
So why can't I just change to zsh right now? I won't be able to use fink from zsh if I don't install it from fink?!?! I can get into zsh right now, can't I?
Yep, panther ships with a zsh, /bin/zsh
Quote:

BTW, Why is it that fink only works from within tcsh (for me)? Bash gives me 'command not found' when I enter 'fink'.
Probably because you need a line like
Code:

. /sw/bin/init.sh
in you .profile so that the path to the fink software etc. gets set up right.
Quote:

I really need to wait until zsh is available through fink, in order to fully switch to zsh and be productive with it? [You can tell I'm confused about this.]
Nope, as I said, it is there as /bin/zsh in panther.

Quote:

Also, how do I make the hint from this morning about sending man pages to Preview work for me in zsh (once I've got it up and working like it's supposed to)?
Even if you are running zsh, you can still run a script that uses another shell. IE if you take from that hint
Code:

#!/bin/sh
if [ ! $1 ]; then
        echo "What man page do you want?";
        exit;
fi;

if [ ! $2 ]; then
        MAN_PAGE=$1;
        MAN_SECTION="1";
else
        MAN_PAGE=$2;
        MAN_SECTION=$1;
fi;

CACHE_PATH="/tmp/ManCache"
CACHE_FILENAME=$CACHE_PATH/$MAN_PAGE.$MAN_SECTION.pdf

if [[ ! -d "$CACHE_PATH" ]]; then
        mkdir -p $CACHE_PATH;
fi;

if [[ -r $CACHE_FILENAME ]]; then
        open $CACHE_FILENAME;
elif [[ `man -w "$@"` != "" ]]; then
        man -t $@ | pstopdf -i -o $CACHE_FILENAME; open $CACHE_FILENAME;
fi;

and put it in a file, make it executable (chmod 755 <filename>) and put it somewhere in your PATH, you can still run it. The first line of the code:
Code:

#!/bin/sh
tells the OS to use /bin/sh to interpert the script,.

jiclark 11-03-2003 01:58 AM

So Douglas...
 
...can you tell me why sao is having me go through such hoops to install zsh through fink??? What advantage will that give me?

Thanks for your interest, and help!

John-o


All times are GMT -5. The time now is 10:43 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.