1 | [[tags:platforms linux bsd mac windows solaris]] |
---|
2 | |
---|
3 | [[toc:]] |
---|
4 | |
---|
5 | == Introduction |
---|
6 | |
---|
7 | This aims to provide a comprehensive listing of all platforms where Chicken |
---|
8 | is available in pre-packaged form (whether as a distribution package or a |
---|
9 | binary). |
---|
10 | |
---|
11 | To see on which platforms CHICKEN is supported, see [[portability]]. |
---|
12 | |
---|
13 | In order to enable software written using CHICKEN to be effectively |
---|
14 | distributed, it is important that CHICKEN (or at least the CHICKEN |
---|
15 | libraries) be included in as many of the various packaging systems as |
---|
16 | possible, so that it can always be relied on as an available dependency. |
---|
17 | |
---|
18 | == Linux |
---|
19 | |
---|
20 | === Debian Linux |
---|
21 | |
---|
22 | CHICKEN 3.2.7 is officially included in the Debian Lenny |
---|
23 | distribution. Newer CHICKEN versions are available via unofficial |
---|
24 | packages, please see [[Debian packages]]. |
---|
25 | |
---|
26 | === Ubuntu Linux |
---|
27 | |
---|
28 | Ubuntu packages are being hosted at the Ubuntu-NLP repository [http://cl.naist.jp/~eric-n/ubuntu-nlp/]. |
---|
29 | i386 and amd64 are both supported for gutsy, hardy, and intrepid. They can be installed as follows: |
---|
30 | |
---|
31 | 1) Add Ubuntu NLP to your /etc/apt/sources.list file: |
---|
32 | |
---|
33 | # Ubuntu-NLP <http://cl.naist.jp/~eric-n/ubuntu-nlp/> |
---|
34 | deb http://cl.naist.jp/~eric-n/ubuntu-nlp <distro> scheme |
---|
35 | deb-src http://cl.naist.jp/~eric-n/ubuntu-nlp <distro> scheme |
---|
36 | |
---|
37 | where <distro> is one of the following: gutsy, hardy, intrepid |
---|
38 | |
---|
39 | 2) Add the repository's public key to your keyring for package verication: |
---|
40 | |
---|
41 | wget http://cl.naist.jp/~eric-n/ubuntu-nlp/8ABD1965.gpg -O- | sudo apt-key add - |
---|
42 | |
---|
43 | 3) Refresh the apt sources: |
---|
44 | |
---|
45 | $ sudo apt-get update |
---|
46 | |
---|
47 | 4) Install chicken-bin; |
---|
48 | |
---|
49 | $ sudo apt-get install chicken-bin |
---|
50 | Reading package lists... Done |
---|
51 | Building dependency tree |
---|
52 | Reading state information... Done |
---|
53 | The following extra packages will be installed: |
---|
54 | libchicken-dev libchicken3 libpcre3-dev libpcrecpp0 |
---|
55 | The following NEW packages will be installed: |
---|
56 | chicken-bin libchicken-dev libchicken3 libpcre3-dev libpcrecpp0 |
---|
57 | 0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded. |
---|
58 | Need to get 5691kB/6046kB of archives. |
---|
59 | After this operation, 22.3MB of additional disk space will be used. |
---|
60 | Do you want to continue [Y/n]? y |
---|
61 | ... |
---|
62 | |
---|
63 | 5) Enjoy the latest chicken under Ubuntu |
---|
64 | |
---|
65 | $ csi |
---|
66 | |
---|
67 | CHICKEN |
---|
68 | (c)2008 The Chicken Team |
---|
69 | (c)2000-2007 Felix L. Winkelmann |
---|
70 | Version 3.4.0 - linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables |
---|
71 | applyhook ] |
---|
72 | SVN 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 | |
---|
81 | This will download, compile and install the latest version of CHICKEN (if it is not already installed). |
---|
82 | |
---|
83 | CHICKEN's [[http://packages.gentoo.org/ebuilds/?chicken-2.6|Portage ebuild]] is maintained by Marijn Schouten. |
---|
84 | |
---|
85 | === Embedded Linux |
---|
86 | |
---|
87 | ==== OpenMoko |
---|
88 | |
---|
89 | This 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 | |
---|
93 | Package maintained by [[john moore]]. |
---|
94 | == Mac OS X |
---|
95 | |
---|
96 | === MacPorts |
---|
97 | |
---|
98 | If you're using [[http://www.macports.org/|MacPorts]], installation is very |
---|
99 | simple. Open the Terminal application and type the following: |
---|
100 | |
---|
101 | sudo port install chicken |
---|
102 | |
---|
103 | This will download, compile and install the latest CHICKEN version. |
---|
104 | |
---|
105 | The MacPorts package is maintained by [[Arto Bendiken]]. |
---|
106 | |
---|
107 | ==== Installing the readline egg |
---|
108 | |
---|
109 | You can install the readline egg to get history and tab-completion in csi. See [[Using the interpreter]]. |
---|
110 | |
---|
111 | However, 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 |
---|
116 | When using certain extensions (posix is one example), you may come across the following error: |
---|
117 | |
---|
118 | "dlopen(libchicken.dylib, 9): image not found" |
---|
119 | |
---|
120 | The 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 | |
---|
124 | Another 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 | |
---|
129 | This 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 | |
---|
137 | This will download, compile and install the latest CHICKEN version. |
---|
138 | |
---|
139 | == BSD |
---|
140 | |
---|
141 | === NetBSD |
---|
142 | |
---|
143 | For 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 | |
---|
148 | For 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 | |
---|
157 | For 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 | |
---|
161 | Chicken 3.4.0 is available as a Cygwin package: [[http://cygwin.com/packages/chicken/]]. |
---|
162 | |
---|
163 | == Solaris |
---|
164 | |
---|
165 | Version 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 | |
---|
171 | For 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. |
---|