1
Installing Programs with setup.rb
2
=================================
7
Type this (You might needs super user previledge):
12
If you want to install a program in to your home directory
13
($HOME), use following instead:
15
$ ruby setup.rb all --prefix=$HOME
17
Detailed Installtion Process
18
----------------------------
20
setup.rb invokes installation by three steps. There are
21
"config", "setup" and "install". You can invoke each steps
22
separately as following:
24
$ ruby setup.rb config
26
# ruby setup.rb install
28
You can controll installation process by giving detailed
29
options for each tasks. For example, --bin-dir=$HOME/bin
30
let setup.rb install commands in $HOME/bin.
32
For details, see "Task Options".
37
"Global Option" is a command line option which you can use
38
for all tasks. You must give a global option before any task
43
suppress message outputs
47
output messages verbosely (default)
55
prints version and quit
59
prints copyright and quit
64
These are acceptable tasks:
68
Invokes `config', `setup', then `install'.
69
Task options for all is same with config.
73
Checks and saves configurations.
77
Prints current configurations.
81
Compiles ruby extentions.
93
Removes created files.
97
Removes all created files.
99
Task Options for CONFIG/ALL
100
---------------------------
102
You can pass following long options for CONFIG task
105
All options accept parameterized value, like
106
--rbdir=$siterubyver or --sodir=$siterubyverarch.
107
On UNIX shells, you should escape "$" character,
108
so use --rbdir=\$siterubyver or --sodir=$siterubyverach.
110
--installdirs=(std|site|home)
112
A handy option to set common install target.
114
std: install files under $libruby.
116
site: install files under $siteruby.
118
home: install files under home directory ($HOME).
122
The path prefix of target directory pathes like $bindir, $libdir...
126
The directory for commands.
130
The directory for ruby scripts.
134
The directory for ruby extentions.
138
The directory for shared data.
142
The directory for configuration files.
146
The directory for manual pages.
150
The directory for ruby libraries.
154
The directory for standard ruby libraries.
156
--librubyverarch=PATH
158
The directory for standard ruby extensions.
162
The directory for version-independent non-standard
167
The directory for non-standard ruby libraries.
169
--siterubyverarch=PATH
171
The directory for non-standard ruby extensions.
175
The path to set to #! line.
177
--shebang=(all|ruby|never)
179
Shenbang line (#!) rewriting mode.
181
all: replace all shebang lines.
183
ruby: replace shebang lines which invokes ruby.
185
never: never rewrite shebang.
189
The ruby program using for installation.
193
The make program to compile ruby extentions.
197
Forces to setup.rb never to compile/install
202
Your rbconfig.rb to load.
204
If there's the directory named "packages",
205
You can also use these options:
207
--with=NAME,NAME,NAME...
209
Package names which you want to install.
211
--without=NAME,NAME,NAME...
213
Package names which you do not want to install.
215
[NOTE] You can pass options to extconf.rb like this:
217
ruby setup.rb config -- --with-tklib=/usr/lib/libtk-ja.so.8.0
219
Task Options for INSTALL
220
------------------------
224
prints what to do and done nothing really.
228
The prefix of the installing directory path.
229
This option may help binary package maintainers.
230
A default value is an empty string.