Hi,
I am writing a C extension but I want to include some classes written in
pure ruby. How can I package the pure ruby files so that it is install
when the user runs
ruby extconf.rb && make && make install
Thanks
Paul
Hi,
I am writing a C extension but I want to include some classes written in
pure ruby. How can I package the pure ruby files so that it is install
when the user runs
ruby extconf.rb && make && make install
Thanks
Paul
I am writing a C extension but I want to include some classes written in
pure ruby. How can I package the pure ruby files so that it is install
when the user runs
ruby extconf.rb && make && make install
Create a directory lib, and put the pure ruby files in this directory
Guy Decoux
You can use Minero Aoki’s install.rb
Add README, TODO, LICENSE, etc in the top dir (and install.rb of course
and you have a nice ‘standard’ package.
On Fri, Jul 25, 2003 at 04:27:47PM +0900, Paul William wrote:
Hi,
I am writing a C extension but I want to include some classes written in
pure ruby. How can I package the pure ruby files so that it is install
when the user runs
ruby extconf.rb && make && make install
–
_ _
__ __ | | ___ _ __ ___ __ _ _ __
'_ \ /| __/ __| '_
_ \ / ` | ’ \
) | (| | |__ \ | | | | | (| | | | |
.__/ _,|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
Win95 is not a virus; a virus does something.
– unknown source
Create a directory lib, and put the pure ruby files in this directory
How would I do that?
Thanks very much for your help
Paul
Where do I get install.rb?
On Fri, 2003-07-25 at 20:36, Mauricio Fernández wrote:
On Fri, Jul 25, 2003 at 04:27:47PM +0900, Paul William wrote:
Hi,
I am writing a C extension but I want to include some classes written in
pure ruby. How can I package the pure ruby files so that it is install
when the user runs
ruby extconf.rb && make && make installYou can use Minero Aoki’s install.rb
- put extconf.rb + sources in ext/extname/
- create a MANIFEST file in ext/extname, containing the names of all files
in that dir- put the .rb files in lib/
Add README, TODO, LICENSE, etc in the top dir (and install.rb of course
and you have a nice ‘standard’ package.
How would I do that?
svg% ls -R
.:
extconf.rb lib/ test.c test.rb*
./lib:
b.rb*
svg%
svg% ruby extconf.rb
creating Makefile
svg%
svg% make
gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -c test.c
gcc -shared -L"/usr/local/lib" -o mytest.so test.o -ldl -lcrypt -lm -lc
svg%
svg# make install
mytest.so -> /usr/local/lib/ruby/site_ruby/1.8/i686-linux/mytest.so
chmod 0755 /usr/local/lib/ruby/site_ruby/1.8/i686-linux/mytest.so
./lib/b.rb -> /usr/local/lib/ruby/site_ruby/1.8/b.rb
chmod 0644 /usr/local/lib/ruby/site_ruby/1.8/b.rb
svg#
Guy Decoux
http://raa.ruby-lang.org/list.rhtml?name=setup
On Fri, Jul 25, 2003 at 05:48:40PM +0900, maillist@bestworldweb.homelinux.com wrote:
You can use Minero Aoki’s install.rb
Where do I get install.rb?
–
_ _
__ __ | | ___ _ __ ___ __ _ _ __
'_ \ /| __/ __| '_
_ \ / ` | ’ \
) | (| | |__ \ | | | | | (| | | | |
.__/ _,|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
Try to remove the color-problem by restarting your computer several times.
– Microsoft-Internet Explorer README.TXT
Guy, Thanks VERY much for all your help and examples.
Best regards
Paul
Thanks very much for your kind help.
Best Regards
Paul
On Fri, 2003-07-25 at 21:22, Mauricio Fernández wrote:
On Fri, Jul 25, 2003 at 05:48:40PM +0900, maillist@bestworldweb.homelinux.com wrote:
You can use Minero Aoki’s install.rb
Where do I get install.rb?