source: project/wiki/platforms @ 13946

Last change on this file since 13946 was 13946, checked in by svnwiki, 11 years ago

Changes applied for underspecified (220.43.52.7) through svnwiki:

Added install instructions for Ubuntu Linux.

File size: 5.7 KB
Line 
1[[tags:platforms linux bsd mac windows solaris]]
2
3[[toc:]]
4
5== Introduction
6
7This aims to provide a comprehensive listing of all platforms where Chicken
8is available in pre-packaged form (whether as a distribution package or a
9binary).
10
11To see on which platforms CHICKEN is supported, see [[portability]].
12
13In order to enable software written using CHICKEN to be effectively
14distributed, it is important that CHICKEN (or at least the CHICKEN
15libraries) be included in as many of the various packaging systems as
16possible, so that it can always be relied on as an available dependency.
17
18== Linux
19
20=== Debian Linux
21
22CHICKEN 3.2.7 is officially included in the Debian Lenny
23distribution. Newer CHICKEN versions are available via unofficial
24packages, please see [[Debian packages]].
25
26=== Ubuntu Linux
27
28Ubuntu packages are being hosted at the Ubuntu-NLP repository [http://cl.naist.jp/~eric-n/ubuntu-nlp/].
29i386 and amd64 are both supported for gutsy, hardy, and intrepid. They can be installed as follows:
30
311) Add Ubuntu NLP to your /etc/apt/sources.list file:
32
33# Ubuntu-NLP <http://cl.naist.jp/~eric-n/ubuntu-nlp/>
34deb http://cl.naist.jp/~eric-n/ubuntu-nlp <distro> scheme
35deb-src http://cl.naist.jp/~eric-n/ubuntu-nlp <distro> scheme
36
37where <distro> is one of the following: gutsy, hardy, intrepid
38
392) Add the repository's public key to your keyring for package verication:
40
41wget http://cl.naist.jp/~eric-n/ubuntu-nlp/8ABD1965.gpg -O- | sudo apt-key add -
42
433) Refresh the apt sources:
44
45$ sudo apt-get update
46
474) Install chicken-bin;
48
49$ sudo apt-get install chicken-bin
50Reading package lists... Done
51Building dependency tree
52Reading state information... Done
53The following extra packages will be installed:
54 libchicken-dev libchicken3 libpcre3-dev libpcrecpp0
55The following NEW packages will be installed:
56 chicken-bin libchicken-dev libchicken3 libpcre3-dev libpcrecpp0
570 upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
58Need to get 5691kB/6046kB of archives.
59After this operation, 22.3MB of additional disk space will be used.
60Do you want to continue [Y/n]? y
61...
62
635) Enjoy the latest chicken under Ubuntu
64
65$ csi
66
67CHICKEN
68(c)2008 The Chicken Team
69(c)2000-2007 Felix L. Winkelmann
70Version 3.4.0 - linux-unix-gnu-x86-64   [ 64bit manyargs dload ptables
71applyhook ]
72SVN rev. 11987  compiled 2009-02-27 on thyme (Linux)
73
74#;1>
75=== Gentoo Linux
76
77[[http://www.gentoo.org/|Gentoo]] users can install chicken the normal way:
78
79  emerge -auv chicken
80
81This will download, compile and install the latest version of CHICKEN (if it is not already installed).
82
83CHICKEN's [[http://packages.gentoo.org/ebuilds/?chicken-2.6|Portage ebuild]] is maintained by Marijn Schouten.
84
85=== Embedded Linux
86
87==== OpenMoko
88
89This package consists of the runtime library plus interpreter. The version of Chicken is 2.733.
90
91 ipkg install http://zedstar.org/ipk/chicken-scheme-interpreter_2.733_armv4t.ipk
92
93Package maintained by [[john moore]].
94== Mac OS X
95
96=== MacPorts
97
98If you're using [[http://www.macports.org/|MacPorts]], installation is very
99simple. Open the Terminal application and type the following:
100
101  sudo port install chicken
102
103This will download, compile and install the latest CHICKEN version.
104
105The MacPorts package is maintained by [[Arto Bendiken]].
106
107==== Installing the readline egg
108
109You can install the readline egg to get history and tab-completion in csi. See [[Using the interpreter]].
110
111However, you may get errors when compiling the egg. This is because Apple doesn't ship GNU readline with OS X. However, there is an easy fix:
112
113  port install readline
114
115==== Fixing libchicken.dylib
116When using certain extensions (posix is one example), you may come across the following error:
117
118  "dlopen(libchicken.dylib, 9): image not found"
119
120The easiest way to fix this is to add an alias to libchicken.dylib to /usr/local/lib, like so:
121
122  sudo ln -s /opt/local/lib/libchicken.dylib /usr/local/lib/
123
124Another solution is to set the {{DYLD_LIBRARY_PATH}} environment variable to the location of {{libchicken.dylib}}. However, this will mess up some other programs, as they will look for their libraries in {{/opt/local/lib}} as well. One solution is to set up aliases for {{csi}} and {{csc}} in your bash profile. Add the following two lines to {{~/.profile}}:
125
126  alias csi='DYLD_LIBRARY_PATH=/opt/local/lib csi'
127  alias csc='DYLD_LIBRARY_PATH=/opt/local/lib csc'
128
129This will set {{DYLD_LIBRARY_PATH}} for {{csi}} and {{csc}}, but not for other commands.
130
131=== Fink
132
133[[http://www.finkproject.org/|Fink]] users can type the following command in a Terminal:
134
135  fink install chicken
136
137This will download, compile and install the latest CHICKEN version.
138
139== BSD
140
141=== NetBSD
142
143For NetBSD, you can use the {{lang/chicken}} package from [[http://www.pkgsrc.org|pkgsrc]] to install the latest stable release.
144
145
146=== OpenBSD
147
148For OpenBSD, you can use the {{lang/chicken}} package by running the following command as root:
149
150<enscript>
151$ pkg_add chicken
152</enscript>
153
154
155=== DragonFly BSD
156
157For DragonFly BSD, you can use the {{lang/chicken}} package from [[http://www.pkgsrc.org|pkgsrc]] to install the latest stable release.
158
159== Windows
160
161Chicken 3.4.0 is available as a Cygwin package: [[http://cygwin.com/packages/chicken/]].
162
163== Solaris
164
165Version 3.3.0 packages for SPARC/Solaris 8-10 and x86/Solaris 10 can be found at [[http://www.sunfreeware.com]].  Installation instructions are available on the main page of that site.
166
167== Other platforms/cross-platform support
168
169=== pkgsrc
170
171For many systems, you can use [[http://www.pkgsrc.org|pkgsrc]].  This is a cross-platform packaging system, which works most modern Unix-like operating systems and even on Windows (using Interix/Services for Unix or Cygwin). See [[http://www.netbsd.org/docs/software/packages.html#platforms|this table]] for the full list of supported platforms.
Note: See TracBrowser for help on using the repository browser.