[XtalOpt-devel] compiling xtalopt on mac os x 10.6.8

David Lonie loniedavid at gmail.com
Thu Sep 29 09:47:55 PDT 2011


Hi Sebastien,

Unfortunately libssh does not support OSX, and as a result, XtalOpt is
aimed at Linux/Windows users only.

However, I did find this:

http://www.fireantsecurity.co.uk/?p=131

it seems to suggest that changing line 697 in xtalopt/src/libssh/socket.c from

execve(args[0],(char * const *)args,(char * const *)environ);

to

execvp(args[0],(char * const *)args);

will enable libssh to compile on OSX. I don't have a mac to try this
on, but if it works for you I can add the change to the source code.

Dave

On Thu, Sep 29, 2011 at 12:40 PM, Sebastien Hamel <hamel2 at llnl.gov> wrote:
> Hello,
> I installed eigen,cmake,qt,openbabel,avogadro (removed the reference to
> bsdyengine,navigatetool and element in avogadro_LIB_DEPENDS) . Now I'm try
> to make xtalopt but I get this error message:
> Undefined symbols:
>   "_environ", referenced from:
>       _ssh_execute_command in libssh_static.a(socket.c.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [src/xtalopt/xtalopt.dylib] Error 1
> make[1]: *** [src/xtalopt/CMakeFiles/xtalopt.dir/all] Error 2
> make: *** [all] Error 2
>
> It looks like libssh is looking for something. This error message pops up
> for different mac installation (if you simply google the error message).
> Has anybody succesfully installed on a mac?
> Sebastien
> _______________________________________________
> XtalOpt-Devel mailing list
> XtalOpt-Devel at lists.openmolecules.net
> http://lists.openmolecules.net/listinfo.cgi/xtalopt-devel-openmolecules.net
>
>



More information about the XtalOpt-Devel mailing list