Hello everybody !!!!

While attempting to upgrade the optional cbc package we met an issue I have
no idea how to solve. For some mysterious reason (for which I did not try
to find an explanation -- this package is exhausting me), Coin requires
some optional libraries to be run. On my computer, I need to add the
libraries librt, libz, and libbz2 to the modules_list.py file :

- libraries = ["csage", "stdc++", "Cbc", "CbcSolver", "Cgl", "Clp",
"CoinUtils", "OsiCbc", "OsiClp", "Osi", "OsiVol", "Vol"])
+ libraries = ["csage", "stdc++", "Cbc", "Cgl", "CbcSolver",
"Clp","CoinUtils", "OsiClp", "Osi", "z", "bz2", "rt"])

The thing is that when John tests it on his own computer the compilation
fails, because it looks like there is no librt on Mac. Actually, it just
isn't needed for everything runs fine without the -lrt flag on his
computer. Well. Is there any way to detect the architecture and use this rt
flag on non-mac computers ?

It may be easier to fix the problem from inside the SPKG, though. Would
anybody know how to write something like that in a bash script :

if <I am not running mac>:
  export LDFLAGS="$LDFLAGS -lrt"

For it may be easier to check it there than from modules_list.py....

Thank you very much for your help ! :-)

Nathann

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to