première tentative, lp-solve
[nosmile]
sur OS X :
perl -MCPAN -e shell cpan[1]> install Math::LP::Solve CPAN: Storable loaded ok Going to read /Users/flanker/.cpan/Metadata Database was generated on Sun, 08 Apr 2007 17:11:28 GMT Running install for module Math::LP::Solve Running make for W/WI/WIMV/Math-LP-Solve-3.03.tar.gz CPAN: Digest::SHA loaded ok Checksum for /Users/flanker/.cpan/sources/authors/id/W/WI/WIMV/Math-LP-Solve-3.03.tar.gz ok Scanning cache /Users/flanker/.cpan/build for sizes Math-LP-Solve-3.03/ Math-LP-Solve-3.03/t/ Math-LP-Solve-3.03/t/lp_examples/ Math-LP-Solve-3.03/t/lp_examples/ex3.out Math-LP-Solve-3.03/t/lp_examples/ex4.out Math-LP-Solve-3.03/t/lp_examples/ex1.lp Math-LP-Solve-3.03/t/lp_examples/ex5.out Math-LP-Solve-3.03/t/lp_examples/ex2.lp Math-LP-Solve-3.03/t/lp_examples/ex6.out Math-LP-Solve-3.03/t/lp_examples/ex3.lp Math-LP-Solve-3.03/t/lp_examples/ex4.lp Math-LP-Solve-3.03/t/lp_examples/ex1.out Math-LP-Solve-3.03/t/lp_examples/ex5.lp Math-LP-Solve-3.03/t/lp_examples/ex6.lp Math-LP-Solve-3.03/t/lp_examples/ex2.out Math-LP-Solve-3.03/t/print_solution.pl Math-LP-Solve-3.03/t/02regress.t Math-LP-Solve-3.03/t/01solve.t Math-LP-Solve-3.03/t/round_numbers.pl Math-LP-Solve-3.03/README Math-LP-Solve-3.03/MANIFEST Math-LP-Solve-3.03/Changes Math-LP-Solve-3.03/Makefile.PL Math-LP-Solve-3.03/contrib/ Math-LP-Solve-3.03/contrib/add_pm_version_number.pl Math-LP-Solve-3.03/contrib/export_swigged_symbols.pl Math-LP-Solve-3.03/Solve.c Math-LP-Solve-3.03/Solve.pod Math-LP-Solve-3.03/Solve.pm Math-LP-Solve-3.03/Solve.i Removing previously used /Users/flanker/.cpan/build/Math-LP-Solve-3.03 CPAN.pm: Going to build W/WI/WIMV/Math-LP-Solve-3.03.tar.gz *** You do not have a lp_solve_3.2 directory yet. *** I will extract it for you from lp_solve_3.2.tar.gz. *** But first I need to download lp_solve_3.2.tar.gz to the current directory. Fetching ftp://ftp.ics.ele.tue.nl/pub/lp_solve/lp_solve_3.2.tar.gz ... Failed to get file `lp_solve_3.2.tar.gz' from host `ftp.ics.ele.tue.nl' Warning: No success on command[/opt/local/bin/perl Makefile.PL] Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: WIMV/Math-LP-Solve-3.03.tar.gz : writemakefile NO '/opt/local/bin/perl Makefile.PL' returned status 65280
Vous noterez le code d'erreur (65280) extrêmement explicite !
Au moins, la seule information importante de tout ça (Failed to get file `lp_solve_3.2.tar.gz' from host `ftp.ics.ele.tue.nl' ) n'est absolument pas perdue dans du texte incompréhensible, ça fait plaisir... :/
Surtout, ne pas dire comment régler le problème, ça pourrait être trop utile... Si par erreur, j'arrive à le récupérer, je le mets où ? (cc)
J'ai également tenté avec glpk...
e LDFLAGS=-L/opt/local/lib ./configureaprès avoir trouvé qu'il fallait faire env CPPFLAGS=-I/opt/local/includonfigure et non ./c (ça aurait été trop simple),
j'ai
plop:/Users/flanker/Desktop/Math-GLPK-Solve-0.05 root# perl Makefile.PL
Using default GLPK_VERSION=4.8
You can override the default selection by issuing 'GLPK_VERSION=<your_GLPK_VERSION> perl Makefile.PL'
Copy: include/Solve.pm.4.8 -> Solve.pm
Copy: include/GLPK_wrap.c.4.8 -> GLPK_wrap.c
Checking if your kit is complete...
Looks good
Writing Makefile for Math::GLPK::Solve
plop:/Users/flanker/Desktop/Math-GLPK-Solve-0.05 root# make
cp Solve.pm blib/lib/Math/GLPK/Solve.pm
cp Solve.pod blib/lib/Math/GLPK/Solve.pod
/usr/bin/gcc-4.0 -c -I/opt/local/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"0.05\" -DXS_VERSION=\"0.05\" "-I/opt/local/lib/perl5/5.8.8/darwin-2level/CORE" GLPK_wrap.c
GLPK_wrap.c: In function ‘lpx_read_lpt’:
GLPK_wrap.c:865: warning: passing argument 1 of ‘__croak_if_API_mismatch’ discards qualifiers from pointer target type
GLPK_wrap.c: In function ‘lpx_write_lpt’:
GLPK_wrap.c:869: warning: passing argument 1 of ‘__croak_if_API_mismatch’ discards qualifiers from pointer target type
Running Mkbootstrap for Math::GLPK::Solve ()
chmod 644 Solve.bs
rm -f blib/arch/auto/Math/GLPK/Solve/Solve.bundle
LD_RUN_PATH="/usr/local/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -L/opt/local/lib -bundle -undefined dynamic_lookup -L/usr/local/lib GLPK_wrap.o -o blib/arch/auto/Math/GLPK/Solve/Solve.bundle \
-lglpk \
chmod 755 blib/arch/auto/Math/GLPK/Solve/Solve.bundle
cp Solve.bs blib/arch/auto/Math/GLPK/Solve/Solve.bs
chmod 644 blib/arch/auto/Math/GLPK/Solve/Solve.bs
Manifying blib/man3/Math::GLPK::Solve.3
plop:/Users/flanker/Desktop/Math-GLPK-Solve-0.05 root# make test
PERL_DL_NONLAZY=1 /opt/local/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..2
not ok 1 - use Math::GLPK::Solve;
# Failed test 'use Math::GLPK::Solve;'
# at test.pl line 9.
# Tried to use 'Math::GLPK::Solve'.
# Error: Can't load 'blib/arch/auto/Math/GLPK/Solve/Solve.bundle' for module Math::GLPK::Solve: dlopen(blib/arch/auto/Math/GLPK/Solve/Solve.bundle, 2): Symbol not found: ___gmpn_sub_nc
# Referenced from: /opt/local/lib/libgmp.3.dylib
# Expected in: flat namespace
# at blib/lib/Math/GLPK/Solve.pm line 8
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at test.pl line 9.
Global symbol "$LPX_MAX" requires explicit package name at test.pl line 16.
Global symbol "$LPX_UP" requires explicit package name at test.pl line 20.
Global symbol "$LPX_UP" requires explicit package name at test.pl line 22.
Global symbol "$LPX_UP" requires explicit package name at test.pl line 24.
Global symbol "$LPX_LO" requires explicit package name at test.pl line 28.
Global symbol "$LPX_LO" requires explicit package name at test.pl line 31.
Global symbol "$LPX_LO" requires explicit package name at test.pl line 34.
Global symbol "$LPX_OPT" requires explicit package name at test.pl line 85.
Execution of test.pl aborted due to compilation errors.
# Looks like you planned 2 tests but only ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test died just after 1.
make: *** [test_dynamic] Error 255Toujours aussi clair et explicite, naturellement

edit : bouh [/nosmile] ne fait rien





maintenant, [google]perl glpk[/google] renvoie yAronet en premier 

)
perl