Darwin Fink

[ Start > Darwin Fink ] [ Edit this Page | Show Page Versions | Show Formatted ]

1 What is it?

{link:Fink|http://fink.sf.net/} is a Debian-like packaging system for darwin/MacOS X.

It allows package compilation from sources as well as binary package install.

This document assumes you have Fink properly installed and running. See {link:Fink|http://fink.sf.net/} for more informations.

1 Pike7.8

Assuming you have Fink installed.

{code}sudo apt-get install pike7.8{code}

(plus additional packages as required - apt-cache search pike7.8)

1 Pike 7.6

1.1 Status

This package is known to build and run on MacOS X 10.4.x on PowerPC and x86.

The pike7.6 Fink packages has been made so that it won't conflict with pike7.2 or pike7.4 Fink packages.
However, i'm not sure wether pike7.2 nor pike7.4 won't mess up the pike7.6 package.

Informations about this can be found online:

You have different ways of installing pike7.6: official binary package,unofficial binary package, and source package.

1.1 Binary package (official)

The Pike 7.6 packages have not been submitted to the Fink team, yet. Thus, there is no official binary packages available in the {link:Fink packages database|http://pdb.finkproject.org/pdb/search.php?summary=pike}.

1.1 Binary package (unofficial)

Until there is no official binary package available, this is by far the prefered method if you don't want to hack the package.

 {link:latest binary packages can be downloaded|http://bertrand.lupart.free.fr/Pike/Fink/}.
Place the required files in __/sw/fink/dists/local/main/binary-darwin-powerpc/__.

Then use the following command to install it:
sudo fink -b install pike7.6

1.1 Source Package

Get the latest {link:Fink info and patch files for Pike 7.6 |http://bertrand.lupart.free.fr/fink/dist/local/main/finkinfo/} (Yes, i have to find a public git server).

Place the three required files (__nettle.info, pike7.6.info and pike7.6.patch__) in your local repository: __/sw/fink/dists/local/main/finkinfo/__.

Then use the following command for building Pike:
{code}sudo fink -b build pike7.6{code}

This command will build all programs required to build Pike. The -b flag will try to use the binary distribution as much as possible, so that you won't have to compile all the dependencies, only Pike and Nettle.

Once built, you'll have to install the compiled binary packages. By default, the pike7.6 package contains everything which don't require extra dependency.
Every feature that require an extra dependency is put in a subpackage.
Subpackages can be listed using the command:

sudo fink list pike7.6

For example, if you want to add MySQL support in your Pike, use the following command:

{code}sudo fink -b install pike7.6-mysql{code}

For adding JPEG support, use:

{code}sudo fink -b install pike7.6-jpeg{code}

1.1 Testing

Once Pike is installed, you should be able to run hilfe from Terminal.app:

Pike v7.6 release 86 running Hilfe v3.5 (Incremental Pike Frontend)

Once hilfe is running, particular aspects of the Pike interpreter can be tested interactively.

It's possible to run the testsuites on the freshly compiled Pike if the package has been built with the -Kk flags for Fink (see Hacking). Then:

cd /sw/src/fink.build/pike7.6-7.6.86-1/Pike-v7.6.86
sudo find . -name testsuite -exec bin/test_pike.pike {} \;

1.1 Hacking

Before hacking the package, it's a good idea to know a bit about the Fink packaging system:
- {link:Tutorial|http://fink.sourceforge.net/doc/quick-start-pkg/index.php?phpLang=en}
- {link:Manual|http://fink.sourceforge.net/doc/packaging/index.php?phpLang=en}

For cooking a custom Pike package yourself, just edit the __pike7.6.info__ and/or __pike7.6.patch__ files in your local package directory (__/sw/fink/dists/local/main/finkinfo/__).
Once your custom changes are made, increment the __Revision:__ field and rebuild the package.
Use the -k and -K flags for building, so that you can easily track down any problem at configure/compile time (and you can run the testsuites): all the source and compiled code will remain in __/sw/src/fink.build/__.

sudo fink rebuild -b -k -K pike7.6

If you add something usefull in the Pike package, please share.

1.1 Troubleshoot

If you encounter a problem, send a detailed report to the {link:Pike mailing list|http://pike.ida.liu.se/forums/}, using the \[Fink\] subject.

1 Pike 7.4

1.1 Status

This package is known to build and run on MacOS X 10.3.x on PowerPC.

Pike 7.4 has been packaged by Xavier Beaudouin.

1.1 Binary package

There is currently no binary package available for Pike 7.4.

1.1 Source package

Depending on your platform, {link:Pike 7.4 may be available in your Fink installation|http://pdb.finkproject.org/pdb/package.php/pike7.4}. Check that:

{code}sudo fink list pike7.4{code}

If pike7.4 is not available, copy the __pike7.4.info__ file to __/sw/fink/dists/local/main/finkinfo/__.

Then, install pike7.4:

{code}sudo fink -b install pike7.4{code}

1.1 Troubleshoot

If you encounter a problem, send a detailed report to the {link:Pike mailing list|http://pike.ida.liu.se/forums/}, using the \[Fink\] subject.

Powered by PikeWiki2

gotpike.org | Copyright © 2004 - 2009 | Pike is a trademark of Department of Computer and Information Science, Linköping University