On Tue, May 29, 2012 at 2:42 PM, My Th <rei4...@gmail.com> wrote:

> O , 2012-05-29 14:29 -0700, Craig James rakstīja:
> > I've confirmed absolutely on Ubuntu: Testing in the build directory
> > works.  Testing with an installed OpenBabel system doesn't.
> >
> > I started with a completely clean computer ... it didn't even have a g
> > ++ compiler, cmake, or anything else (definitely not OpenBabel). This
> > computer had never been used before.
> >
> > After installing svn, cmake and g++, I checked out the very latest
> > OpenBabel (r4834) into $HOME/test-svn.  Then:
> >
> > $ cd ../build-test-svn/
> > $ \rm -rf *
> > $ sudo /bin/bash
> > # \rm -rf /usr/local/openbabel/*
> > # exit
> > $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/openbabel ../test-svn
> > $ make
> > $ make test
> >
> > At this point, most tests pass, and there are no segfaults.
> >
> > Now install:
> >
> > $ sudo /bin/bash
> > # make install/fast
> > # exit
> > $ make test
>
> Here make test probably picks your installed version and fails as a
> result.


That doesn't make sense.  Why should it fail if it finds the installed
version?  It's the same version.  That was the point of my test: I compiled
and installed it on an absolutely clean system that couldn't possibly have
two versions of OpenBabel.

The whole point of this exercise is to prove that when it DID find the
installed version, it crashes.


> Try setting LD_LIBRARY_PATH and friends (using absolute paths,
> set also PYTHON_PATH if you are compiling python bindings) before
> running make test: LD_LIBRARY_PATH=./lib/ BABEL_LIBDIR=./lib/
> BABEL_DATADIR=../test-svn/openbabel/trunk/data/ make test
>

So you're saying that "make test" SHOULD fail if you've done "make install"
and have LD_LIBRARY_PATH set, even if the libraries are correctly
installed?  That seems really confusing.  Why shouldn't "make test" work
either way?

Thanks,
Craig
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to