On Jan 25, 11:11 am, Nathann Cohen <nathann.co...@gmail.com> wrote: > 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"
Yes, in the spkg is the appropriate place, I would assume (?) though I assume this isn't actually in installation of the spkg. Hmm. Can we modify module_list.py while running an spkg? Usually it's something like if [ "$UNAME" = "Darwin" ]; then (stuff) fi Looks like the shell script for not equal (strings) is !=, so if [ "$UNAME" != "Darwin" ]; then (stuff) fi but I'd check about whether Solaris requires this. -- 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