Re: [pylucene-dev] Problems compiling PyLucene on Windows XP -
Hello all! I got a little bit further in the compilation process, but I've hit another brick wall :) I had to changed a few paths (I wonder why the o: drive wasn't being found...) and updated the JDK to the 1.6.0_06 version. I've ran into this error: build\temp.win32-2.5\Release\_jcc\java\lang\reflect\modifier.o build\temp.win32-2.5\Release\_jcc\java\lang\reflect\__init__.o build\temp.win32-2.5\Release\_jcc\java\util\enumeration.o build\temp.win32-2.5\Release\_jcc\java\util\iterator.o build\temp.win32-2.5\Release\jcc\sources\_jcc.def -Lc:\Python25\libs -Lc:\Python25\PCBuild -lpython25 -lmsvcr71 -o build\lib.win32-2.5\jcc\_jcc.pyd c:\Programas\Java\jdk1.6.0_06\lib\jvm.lib build\temp.win32-2.5\Release\jcc\sources\jcc.o:jcc.cpp:(.text+0xa04): undefined reference to `JCCEnv::JCCEnv(_Jv_JavaVM*, _Jv_JNIEnv*)' collect2: ld returned 1 exit status error: command 'g++' failed with exit status 1 Any clues on this one? I tried to read the thread between Andi and Bill, because it seemed to me that it was about this problem but I couldn't make much out of it... sorry :( Best regards! ___ pylucene-dev mailing list pylucene-dev@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
Re: [pylucene-dev] Build problems on OS X 10.5 Leopard
On May 29, 2008, at 3:45 AM, "Peter MacRobert" <[EMAIL PROTECTED]> wrote: Ok, scrap that last question... "make install" sorted it out. duh :-) Everything seems to be working A-ok. Now I need a good starting point on how to actually _use_ lucene in a Python (Django) application. Any good tutorials I can start on? There are lots of samples in the source tree. In particular, all the samples from the "Lucene in Action" book got ported to PyLucene. Andi.. Ta for all the help. P. On Thu, May 29, 2008 at 11:36 AM, Peter MacRobert <[EMAIL PROTECTED] > wrote: Ok, we're getting somewhere. Step 1: remove all traces of python25 installed from ports! I just built all the stuff I need manually... no biggy. Now jcc is building the correct version (10.5) and I get a clean build on pylucene. The next step is - where do I install it to? I'm assuming I need to do something with the jars that are placed in the build/ dir, but there are no instructions in the README or INSTALL files. Thanks, Peter On Wed, May 28, 2008 at 10:37 PM, Andi Vajda <[EMAIL PROTECTED]> wrote: On Wed, 28 May 2008, Peter MacRobert wrote: Hi there Thanks for you responses. Glad to know I'm not suffering in silence :-) I am running the ports version of python because I need to install several other libraries from ports, e.g. ipython, py-readline, psycopg2, etc. And every time I try to install one of those packages using ports it requires the ports version of python25. I know I could get around these on an individual basis, but after a while it becomes very tiresome. I assume that I should put this somewhere: MACOSX_DEPLOYMENT_TARGET=10.5 but where? In your environment. For example, in ~/.bashrc. Or set it in your shell before starting the build: export MACOSX_DEPLOYMENT_TARGET=10.5 Please note that if the python you installed from ports was built with a different value, the build is still going to fail with an error saying that you're now mixing executables built for different targets. If you must use python from ports and must use a different value than 10.5 for MACOSX_DEPLOYMENT_TARGET then, as a workaround, you can do one of: . either force enable_shared to be False in JCC's setup.py . or remove the use of @rpath in JCC's setup.py (line 132) and instead set DYLD_LIBRARY_PATH in your environment to include the directory where libjcc.dylib is installed Andi.. ___ pylucene-dev mailing list pylucene-dev@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/pylucene-dev -- Peter MacRobert > Facilitating value-added convergence by harnessing collaborative metrics. -- Peter MacRobert > Facilitating value-added convergence by harnessing collaborative metrics. ___ pylucene-dev mailing list pylucene-dev@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/pylucene-dev ___ pylucene-dev mailing list pylucene-dev@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
Re: [pylucene-dev] Build problems on OS X 10.5 Leopard
Ok, scrap that last question... "make install" sorted it out. duh :-) Everything seems to be working A-ok. Now I need a good starting point on how to actually _use_ lucene in a Python (Django) application. Any good tutorials I can start on? Ta for all the help. P. On Thu, May 29, 2008 at 11:36 AM, Peter MacRobert <[EMAIL PROTECTED]> wrote: > Ok, we're getting somewhere. > > Step 1: remove all traces of python25 installed from ports! I just built > all the stuff I need manually... no biggy. > > Now jcc is building the correct version (10.5) and I get a clean build on > pylucene. > > The next step is - where do I install it to? I'm assuming I need to do > something with the jars that are placed in the build/ dir, but there are no > instructions in the README or INSTALL files. > > Thanks, > > Peter > > > > On Wed, May 28, 2008 at 10:37 PM, Andi Vajda <[EMAIL PROTECTED]> > wrote: > >> >> On Wed, 28 May 2008, Peter MacRobert wrote: >> >> Hi there >>> >>> Thanks for you responses. Glad to know I'm not suffering in silence :-) >>> >>> I am running the ports version of python because I need to install >>> several >>> other libraries from ports, e.g. ipython, py-readline, psycopg2, etc. And >>> every time I try to install one of those packages using ports it requires >>> the ports version of python25. I know I could get around these on an >>> individual basis, but after a while it becomes very tiresome. >>> >>> I assume that I should put this somewhere: >>> >>> MACOSX_DEPLOYMENT_TARGET=10.5 >>> >>> but where? >>> >> >> In your environment. For example, in ~/.bashrc. >> Or set it in your shell before starting the build: >> export MACOSX_DEPLOYMENT_TARGET=10.5 >> >> Please note that if the python you installed from ports was built with a >> different value, the build is still going to fail with an error saying that >> you're now mixing executables built for different targets. >> >> If you must use python from ports and must use a different value than 10.5 >> for MACOSX_DEPLOYMENT_TARGET then, as a workaround, you can do one of: >> . either force enable_shared to be False in JCC's setup.py >> . or remove the use of @rpath in JCC's setup.py (line 132) and instead >>set DYLD_LIBRARY_PATH in your environment to include the directory >>where libjcc.dylib is installed >> >> Andi.. >> >> ___ >> pylucene-dev mailing list >> pylucene-dev@osafoundation.org >> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev >> > > > > -- > Peter MacRobert > > > Facilitating value-added convergence by harnessing collaborative metrics. > > -- Peter MacRobert > Facilitating value-added convergence by harnessing collaborative metrics. ___ pylucene-dev mailing list pylucene-dev@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
Re: [pylucene-dev] Build problems on OS X 10.5 Leopard
Ok, we're getting somewhere. Step 1: remove all traces of python25 installed from ports! I just built all the stuff I need manually... no biggy. Now jcc is building the correct version (10.5) and I get a clean build on pylucene. The next step is - where do I install it to? I'm assuming I need to do something with the jars that are placed in the build/ dir, but there are no instructions in the README or INSTALL files. Thanks, Peter On Wed, May 28, 2008 at 10:37 PM, Andi Vajda <[EMAIL PROTECTED]> wrote: > > On Wed, 28 May 2008, Peter MacRobert wrote: > > Hi there >> >> Thanks for you responses. Glad to know I'm not suffering in silence :-) >> >> I am running the ports version of python because I need to install several >> other libraries from ports, e.g. ipython, py-readline, psycopg2, etc. And >> every time I try to install one of those packages using ports it requires >> the ports version of python25. I know I could get around these on an >> individual basis, but after a while it becomes very tiresome. >> >> I assume that I should put this somewhere: >> >> MACOSX_DEPLOYMENT_TARGET=10.5 >> >> but where? >> > > In your environment. For example, in ~/.bashrc. > Or set it in your shell before starting the build: > export MACOSX_DEPLOYMENT_TARGET=10.5 > > Please note that if the python you installed from ports was built with a > different value, the build is still going to fail with an error saying that > you're now mixing executables built for different targets. > > If you must use python from ports and must use a different value than 10.5 > for MACOSX_DEPLOYMENT_TARGET then, as a workaround, you can do one of: > . either force enable_shared to be False in JCC's setup.py > . or remove the use of @rpath in JCC's setup.py (line 132) and instead >set DYLD_LIBRARY_PATH in your environment to include the directory >where libjcc.dylib is installed > > Andi.. > > ___ > pylucene-dev mailing list > pylucene-dev@osafoundation.org > http://lists.osafoundation.org/mailman/listinfo/pylucene-dev > -- Peter MacRobert > Facilitating value-added convergence by harnessing collaborative metrics. ___ pylucene-dev mailing list pylucene-dev@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/pylucene-dev