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)

hschickel 10-22-2003 07:29 AM

Panther and Fink
 
What is the recommended way to deal with Fink and Panther? My install is all compiled from source. I assume I need to do a recompile with the new dev tools...

Thanks,
Hugh

yellow 10-22-2003 09:46 AM

http://forums.macosxhints.com/showth...=&postid=86656

mervTormel 10-22-2003 10:54 AM

most executables will still run fine.

why do you think a recompile is necessary? you don't have to re-install all your other apps, right?

it would be a pretty shoddy OS if for every upgrade, one had to re-install new binaries.

sao 10-22-2003 11:52 AM

Quote:

mervTormel wrote:
it would be a pretty shoddy OS if for every upgrade, one had to re-install new binaries.
You are right, actually I don't know how soon a new binary distribution will be ready, but if people can't wait for the bindist, they can just install packages from source.

The developers are putting package description files into the 10.3 tree so that part should be ready. And nobody's going to be forced to use unstable this time as "10.3-stable" actually has packages in it.

The change looks much smoother this time than for the 10.1-->10.2 transition.

hschickel 10-22-2003 12:01 PM

merv,

Thanks, I use mostly the fink networking tools and they seem to all use the same libs. I'm assuming that once I compile anything against the new tools it will all need to be compiled against the new tools.

Bad assumption?

sao,

Thanks, I have a fast connection and a fast compiler. I do not have loads of customizations or loads of software. I mostly use the networking tools. Perhaps the best option is just to reinstall...

yellow,

Thanks, I looked at that link but I was not real sure of it's ramifications. Am I reading right that all items should be compiled against the same compiler?

Hugh

sao 10-22-2003 12:25 PM

Quote:

hschickel wrote:
...mostly use the networking tools. Perhaps the best option is just to reinstall...
Only if you want to. Truth is, you don't need to delete and reinstall unless you want to go that way. You can just start "now" recompiling your network tools from the 10.2-gcc3.3 tree (first update to the latest dev-tools) and for later packages anyhow you will use the future fink panther-tree.

mervTormel 10-22-2003 02:05 PM

Quote:

Originally posted by hschickel
...once I compile anything against the new tools it will all need to be compiled against the new tools...
eh?

okay, example, nmap is /sw/bin/nmap

the binary executable nmap version 3.26 built on fink/10.2 works fine on 10.3 - in other words, these tools don't hork because of a new OS version underneath. the previous version of the compiler/linker made reasonable executables for the architecture.

most commando tools, the same. no need to recompile.

new tools/compiles may be problematic; yet to be seen.

sao 10-22-2003 03:28 PM

Quote:

mervTormel wrote:
most commando tools, the same. no need to recompile.

new tools/compiles may be problematic; yet to be seen.
Right. Some packages will not need to be recompiled. But, some will--those which have C++ code in them do.

Those packages which don't require rebuilding will hopefully be left intact--apart from any LibSystem changes Apple throws at us. :)



From the information I gathered, probably the upgrade path would be:

1- Update Fink to the latest release.

2- Install in 10.2.8 the updated Dev Tools (gcc 3.3)

3- Rebuild those packages which need to be rebuilt. (If they aren't in the 10.2-gcc3.3 tree, they don't need rebuilding)

4- Install MacOS X 10.3

5- Do any further updates that are needed.

hschickel 10-22-2003 04:29 PM

merv,

Good explanation - I can understand that.

Sao,

Quote:

From the information I gathered, probably the upgrade path would be:

1- Update Fink to the latest release.

2- Install in 10.2.8 the updated Dev Tools (gcc 3.3)

3- Rebuild those packages which need to be rebuilt. (If they aren't in the 10.2-gcc3.3 tree, they don't need rebuilding)

4- Install MacOS X 10.3

5- Do any further updates that are needed.
Now that's what I'm looking for... :)

Thanks,
Hugh

jiclark 10-31-2003 02:16 PM

Quote:

From the information I gathered, probably the upgrade path would be:

1- Update Fink to the latest release.

2- Install in 10.2.8 the updated Dev Tools (gcc 3.3)

3- Rebuild those packages which need to be rebuilt. (If they aren't in the 10.2-gcc3.3 tree, they don't need rebuilding)

4- Install MacOS X 10.3

5- Do any further updates that are needed
Okay, so what do I do if I've just done an Erase and Install of 10.3??? Do I need to install the "Xcode Tools" or some other recent version of the Dev. Tools? And then do I wait for a new version of Fink that's made for Panther?

Oh, and are there any known ramifications of installing Virex [7.2] again? When in this process could I do that (or is it no longer an issue with Fink)?

Sorry, hope you all are still monitoring this thread; thanks for helping out a lost soul!!!

John-o

jiclark 10-31-2003 02:18 PM

Actually, I just launched Virex and it worked without problems. This without having copied back my /sw directory saved from my Jaguar install...

And btw, is there any point in bringing that old /sw directory back into the mix now?

Thanks again,
John-o

yellow 10-31-2003 02:19 PM

Quote:

Originally posted by jiclark
Oh, and are there any known ramifications of installing Virex [7.2] again? When in this process could I do that (or is it no longer an issue with Fink)?
McAfee issued an updated (fixed) version that no longer breaks fink. It's version 7.2.1 (a.k.a., 7.2 (v1.1) according to the About Virex window), but I don't know if it's available from any place other then .Mac. You might want to check VersionTracker.

jiclark 10-31-2003 02:21 PM

Thanks yellow,

I have that version...

sao 10-31-2003 03:20 PM

Quote:

jiclark wrote:
Do I need to install the "Xcode Tools" or some other recent version of the Dev. Tools? And then do I wait for a new version of Fink that's made for Panther?
Fink is working quite well in 10.3. If you want to install it now together with Apple's X11, the procedure would be as follow:


1- Install Apple's X11, XCode, X11 SDK.

2- Fink installation:

They recommend bootstrapping from source, starting from fink-full-0.6.0.tar.gz available on fink's sourceforge download page.

3- Run 'fink selfupdate' , to get the latest package descriptions. Check in /sw/etc/fink.conf the "SelfUpdateMethod:" set it to cvs or rsync.

'fink selfupdate-rsync' is the recommended method now, as it's more efficient, and generally the mirrors get updated quicker than anonymous CVS.

4- You may have to run 'fink index' afterwards.

jiclark 10-31-2003 04:09 PM

Drat!
 
Well, I started right in from your first link and had fink 0.5.3 "bootstapping" away when I came back to your post and saw that I was supposed to be using 0.6.0!?! So how do I fix that (once the Terminal finishes installing 0.5.3, which it's churning away on right now)?

<red-faced grin>

I guess I should read the directions further before I get too far on these things. I was just so impressed that I could get something downloaded and decompressed with curl and tar!

BTW, is now the time I should switch my default shell to zsh, if I'm going to? And <cringing>, how do I do that???

Thanks sao,
John-o

sao 10-31-2003 05:23 PM

jiclark,

Fink 0.5.3 in 10.3 will not work. The best way to get a clean install is to download the fink-0.6.0.tar.gz package from http://sf.net/projects/fink/ and run "./bootstrap.sh" to bootstrap your fink installation.

Quote:

jiclark wrote:
is now the time I should switch my default shell to zsh
After installing Fink, use it to install the package zsh-4.0.6-1. Then, open NetInfo Manager, in Applications -> Utilities. Click the lock icon and enter your password, click on users and then click your user name. Scroll down to shell, and then click and edit its Value(s) field from /bin/bash to /sw/bin/zsh. Save and quit Netinfo. Go to terminal.app -->Preferences --> write /bin/zsh.

The following would be a good place to start, as Santin shared his /etc/zshrc, /etc/zshenv, ~/.zshrc and ~/.zshenv files in this thread:

http://forums.macosxhints.com/showth...&highlight=zsh

Also, a good read:
http://forums.macosxhints.com/showth...&highlight=zsh

jiclark 10-31-2003 06:58 PM

<sigh>

I got 0.6.0 to install, but now when I type "fink selfupdate-rsync", I get "fink: command not found"

?

What now?

John-o

vancenase 10-31-2003 07:06 PM

Quote:

Originally posted by jiclark I got 0.6.0 to install, but now when I type "fink selfupdate-rsync", I get "fink: command not found"
is this in your .cshrc (or equivalent)?
Code:

source /sw/bin/init.csh

jiclark 10-31-2003 09:44 PM

sao, help!
 
Quote:

After installing Fink, use it to install the package zsh-4.0.6-1.
I finally got fink running (in tcsh at least). Got selfupdate to run. Now I'm trying to install the zsh package you refer to above, but fink can't find it...

I'm trying:

fink install zsh

or:

fink apt-get install zsh

or either of the above with the '-4.0.6-1' appended to 'zsh'.

What am I doing wrong now?

Thanks a bunch for walking me through this!!

John-o

vancenase 10-31-2003 09:49 PM

try and run
Code:

fink selfupdate
fink update (might not need this?)
fink index

that might help ... sao = the answer wiz, so hopefully he can help!

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

jiclark 11-03-2003 02:04 AM

Also, I can remember many times seeing hints that tell you to "...put [something] in your PATH..."; how exactly do I do that?

Is that the same as putting a line in my '.profile' (in zsh) or my '.cshrc' (in tcsh)?

I feel like I'm just beginning to understand a little bit about all of this...

Maybe!

sao 11-03-2003 02:14 AM

jiclark

Quote:

can you tell me why sao is having me go through such hoops to install zsh through fink???
Sorry, my mistake, when I installed zsh from Fink, it was the latest version. Of course you can use /bin/zsh in Panther.

Quote:

Bash gives me 'command not found' when I enter 'fink'.
Just write:

source /sw/bin/init.sh

in your .bash_profile

Code:

#!/bin/sh
man -t $1 > /tmp/$1.ps
open /tmp/$1.ps

The script works for me from zsh, just make sure you have in your .zshrc:
Code:

## add ~/bin to path
path=($path ~/bin)


jiclark 11-03-2003 02:27 AM

questions, questions...
 
1) I've noticed that there are two zsh files in /bin:

zsh
zsh-4.1.1

Why is that? Is there a difference? And if there is, how do I choose one over the other?

2) You say:

Just write:

source /sw/bin/init.sh

in your .bash_profile

Where is '.bash_profile', and will this fix things in zsh as well as bash? Where is '.profile' [for zsh] if it's different than 'bash.profile'?

3) What is "your .zshrc" and where is it? And how does it differ from '.profile'??

[Man, I think it's time for bed! My head is beginning to spin a bit from all this!]

I'll come back tomorrow and try and sort this out, once and for all...

<Yeah, right!>

sao 11-03-2003 02:36 AM

jiclark,

Many of your questions can be answered by making a search in the forums and and I would suggest a bit of study from your side. :)

Have a good rest tonight and tomorrow is a new day!

jiclark 11-03-2003 02:41 AM

Could you maybe just answer the first question I had? ...About 'zsh' vs 'zsh-4.1.1'??? I just did a quick search on that, and this was the only thread that came up!

Otherwise, I know I need to do some studying, and I surely will!

Later,
John-o

sao 11-03-2003 03:12 AM

jiclark,
Code:

[pm @ Sao: /bin] % grepbom /bin/zsh
...../bin/zsh  479,120 Wed Sep 24 14:46:18 2003
./bin/zsh-4.1.1 479,120 Wed Sep 24 14:46:22 2003
  ====> /Library/Receipts/BaseSystem.pkg/Contents/Archive.bom


............................................

Maybe you choose /bin/zsh ?

sao 11-03-2003 03:15 AM

jiclark,

To help you in your studies...what "dot" files do the various shells use?
Code:

Although this may not be a complete listing, this provides the majority of information.

      csh
          Some versions have system-wide .cshrc and .login files.  Every
          version puts them in different places.

          Start-up (in this order):
              .cshrc  - always; unless the -f option is used.
              .login  - login shells.

          Upon termination:
              .logout  - login shells.

          Others:
              .history - saves the history (based on $savehist).

      tcsh
          Start-up (in this order):
              /etc/csh.cshrc - always.
              /etc/csh.login - login shells.
              .tcshrc        - always.
              .cshrc        - if no .tcshrc was present.
              .login        - login shells

          Upon termination:
              .logout        - login shells.

          Others:
              .history      - saves the history (based on $savehist).
              .cshdirs      - saves the directory stack.

      sh
          Start-up (in this order):
              /etc/profile - login shells.
              .profile    - login shells.

          Upon termination:
              any command (or script) specified using the command:
                trap "command" 0

      ksh
          Start-up (in this order):
              /etc/profile - login shells.
              .profile    - login shells; unless the -p option is used.
              $ENV        - always, if it is set; unless the -p option is used.
                          /etc/suid_profile - when the -p option is used.

          Upon termination:
              any command (or script) specified using the command:
                trap "command" 0

      bash
          Start-up (in this order):
              /etc/profile  - login shells.
              .bash_profile - login shells.
              .profile      - login if no .bash_profile is present.
              .bashrc      - interactive non-login shells.
              $ENV          - always, if it is set.

          Upon termination:
              .bash_logout  - login shells.

          Others:
              .inputrc      - Readline initialization.

      zsh
          Start-up (in this order):
              .zshenv  - always, unless -f is specified.
              .zprofile - login shells.
              .zshrc    - interactive shells, unless -f is specified.
              .zlogin  - login shells.

          Upon termination:
              .zlogout  - login shells.

      rc
          Start-up:
              .rcrc - login shells


stetner 11-03-2003 03:56 AM

Re: So Douglas...
 
Quote:

Originally posted by jiclark
...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
Well, look at the topic of this thread (panther and fink) :) Sometimes a thread starts and people assume because a question is asked in the thread it is related to that thread.

It probably would have been more appropriate for you to have started a new thread along the lines of 'How do I switch to zsh' then we wouldn't have all though that you wanted to do it with fink.

As to why you would use the fink version of zsh, the reason is that the fink software can be much newer than what apple provides, by the time Apple gets through all its testing etc, the source could be 6 months old. You might need a new feature, or even want to hack at the source code.


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.