Installing ruby extensions

T

Thomas Sondergaard

I'm using mkmf to generate a makefile for my ruby extension, but my
extension relies on a few ruby scripts that will also need to be installed.
What is the recommended approach for getting these additional files
installed?

The easiest is to make an install.rb that invokes 'make site-install' to
install the extension module and installs the rest by itself.

Thomas
 
T

Tim Hunter

I'm using mkmf to generate a makefile for my ruby extension, but my
extension relies on a few ruby scripts that will also need to be
installed. What is the recommended approach for getting these additional
files installed?

The easiest is to make an install.rb that invokes 'make site-install' to
install the extension module and installs the rest by itself.

Thomas

If you're using install.rb, the pre/post task hooks may help.

For RMagick, I'm using a top-level Makefile that runs the install.rb
tasks. The 'all' target runs the config and setup tasks, the 'install'
target runs the install task.
 
N

nobu.nokada

Hi,

At Thu, 18 Sep 2003 01:30:59 +0900,
Thomas said:
I'm using mkmf to generate a makefile for my ruby extension, but my
extension relies on a few ruby scripts that will also need to be installed.
What is the recommended approach for getting these additional files
installed?

Put the scripts under lib directory. Makefile generated by
mkmf.rb will install "lib/**/*.rb" also.
 
T

Thomas Sondergaard

Put the scripts under lib directory. Makefile generated by
mkmf.rb will install "lib/**/*.rb" also.

Okay, what if I have an additional .so file I need to install?

Tom
 
N

nobu.nokada

Hi,

At Thu, 18 Sep 2003 18:33:32 +0900,
Thomas said:
Okay, what if I have an additional .so file I need to install?

Separate them to each directories. AFAIK, Ruby-GNOME2 would be
the most complicated example.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,135
Messages
2,570,783
Members
47,341
Latest member
hanifree

Latest Threads

Top