OVH Cloud OVH Cloud

[MacOS X]lib so iclude ???

4 réponses
Avatar
pere.noel
je voudrais compiler :
rjni_tech-preview-2
(ruby <-> Java bridge)
qui me demande comme argument :
--jsdk-so-include

que je n'ai pas trouvé :
checking for main() in -ljava... no
Cannot find the Java library (libjava.so in UN*X)


il n'y a pas, amha, de *.so dans un rep lié à java, sur MacOS X...

les deux arguments que j'ai correctement renseignés :
--jsdk-include=<directory>
--jsdk-lib=<directory>


qq'un aurait une idée à e sujet ?
--
une bévue

4 réponses

Avatar
Erwan David
(Une bévue) écrivait :

je voudrais compiler :
rjni_tech-preview-2
(ruby <-> Java bridge)
qui me demande comme argument :
--jsdk-so-include

que je n'ai pas trouvé :
checking for main() in -ljava... no
Cannot find the Java library (libjava.so in UN*X)


il n'y a pas, amha, de *.so dans un rep lié à java, sur MacOS X...

les deux arguments que j'ai correctement renseignés :
--jsdk-include=<directory>
--jsdk-lib=<directory>


qq'un aurait une idée à e sujet ?


Un .so sur un Unix classique c'est un .dylib sur MacOS X.

--
Si vous embauchez, voici mon CV
http://www.rail.eu.org/cv/cv.pdf

Avatar
pere.noel
Erwan David wrote:


Un .so sur un Unix classique c'est un .dylib sur MacOS X.


ah merci !

notes que je m'en suis douté, mais bon, le script de config semble
vouloir absolument des *.so, seule solution; amha, discuter avec le dev
?

ma commande (au cas où) et sa réponse :

~/work/Ruby/rjni_tech-preview-2%> ruby install.rb config >
--jsdk-include=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.
0/Home/include/ >
--jsdk-lib=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Ho
me/lib/ >
--jsdk-so-include=/System/Library/Frameworks/JavaVM.framework/Versions/1
.5.0/Librairies install.rb: entering config phase... ---> lib --->
lib/rjni <--- lib/rjni <--- lib ---> ext ---> ext/rjni
/opt/local/bin/ruby
/Users/yvon/work/Ruby/rjni_tech-preview-2/ext/rjni/extconf.rb checking
for main() in -ljava... no Cannot find the Java library (libjava.so in
UN*X) Please specify the correct paths with options
--jsdk-include=<directory> --jsdk-lib=<directory>
--jsdk-so-include=<directory> Build cancelled. config failed 'system
/opt/local/bin/ruby
/Users/yvon/work/Ruby/rjni_tech-preview-2/ext/rjni/extconf.rb ' failed
Try 'ruby install.rb --help' for detailed usage.


help me donne : ~/work/Ruby/rjni_tech-preview-2%> ruby install.rb --help
Typical Installation Procedure: $ ruby install.rb config $ ruby
install.rb setup # ruby install.rb install (may require root privilege)

Detailed Usage: ruby install.rb <global option> ruby install.rb [<global
options>] <task> [<task options>]

Global options: -q,--quiet suppress message outputs --verbose
output messages verbosely -h,--help print this message
-v,--version print version and quit --copyright print
copyright and quit

Tasks: config saves your configurations show shows current
configuration setup compiles extention or else install
installs files clean does `make clean' for each extention
distclean does `make distclean' for each extention

Options for config: --prefix=path path prefix of target
environment [/opt/local] --std-ruby=path the directory for standard
ruby libraries [$prefix/lib/ruby/1.8] --site-ruby-common=path the
directory for version-independent non-standard ruby libraries
[$prefix/lib/ruby/site_ruby] --site-ruby=path the directory for
non-standard ruby libraries [$prefix/lib/ruby/site_ruby/1.8]
--bin-dir=path the directory for commands [$prefix/bin]
--rb-dir=path the directory for ruby scripts [$site-ruby]
--so-dir=path the directory for ruby extentions
[$prefix/lib/ruby/site_ruby/1.8/powerpc-darwin8.3.0] --data-dir=path
the directory for shared data [$prefix/share] --ruby-path=path path
to set to #! line [/opt/local/bin/ruby] --ruby-prog=name the ruby
program using for installation [/opt/local/bin/ruby] --make-prog=name
the make program to compile ruby extentions [make] --without-ext
does not compile/install ruby extentions [no] --jsdk-include=path path
to the JSDK headers [/usr/local/java/j2sdk1.4.1/include/]
--jsdk-lib=path path to the JSDK libraries
[/usr/local/java/j2sdk1.4.1/jre/lib/i386/] --jsdk-so-include=path path
to the system-specific JSDK headers
[/usr/local/java/j2sdk1.4.1/include/linux/] --rbconfig=path your
rbconfig.rb to load [running ruby's]

Options for install: --no-harm only display what to do if
given [off] --prefix install path prefix [$prefix]


pour l'instant j'ai 2 bridges qui fonctionnent : jruby, extrêmemnt lent,
et yajb-0.8.1 (particularité écrit en pur java d'un côté et pur ruby de
l'autre pas de native => du coup ça marche même avec Swing...)

--
une bévue

Avatar
ericb
Bonjour,

Un .so sur un Unix classique c'est un .dylib sur MacOS X.


Je le croyais aussi... Juste par curiosité, jette un oeil ici :
/System/Library/Framework/Python.framework/Versions/Current/lib/python2.3/lib-dynload

Ce n'est pas très grave en soi en fait, il faut juste le savoir quand on
cherche à utiliser python :-)

Avatar
pere.noel
ericb wrote:

Je le croyais aussi... Juste par curiosité, jette un oeil ici :
/System/Library/Framework/Python.framework/Versions/Current/lib/python2.3/
lib-dynload


ouais, ça j'avais vu :
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/l
ib-dynload/_Cm.so

d'où j'en avais déduit que ça n'existe pas pour java sur mac.
j'ai installé le java ibm sur linux il y a bien des *.so...
--
une bévue