Figured it out.....the dir path to the jvm wasn't right (look at the first two paths)
Thanks anyways :) On Thu, Apr 17, 2008 at 9:50 PM, Ahmad Humayun <[EMAIL PROTECTED]> wrote: > Hello there, > > I'm trying to get the swig (python) wrapper for libhdfs working using > Saptarshi's guide > (http://www.stat.purdue.edu/~sguha/code.html#hadoopy<http://www.stat.purdue.edu/%7Esguha/code.html#hadoopy> > ) > > I configured 'make' to suit my needs....but everytime I get this output: > > gcc -L/usr/lib/jvm/jre/jre/lib//server -L/usr/lib/jvm/jre/jre/lib/i386/server > -ljvm -shared -m32 -Wl,-x -Wl,--rpath -Wl,/home/ahmad/hadoop-0.15.3/libhdfs > -Wl,--rpath -Wl,/usr/lib/jvm/jre/jre/lib/i386/server -o > /home/ahmad/hadoop-0.15.3/libhdfs/libhdfs.so.1 > -Wl,-soname,/home/ahmad/hadoop-0.15.3/libhdfs/libhdfs.so.1 > /home/ahmad/hadoop-0.15.3/libhdfs/hdfs.o > /home/ahmad/hadoop-0.15.3/libhdfs/hdfsJniHelper.o > /home/ahmad/hadoop-0.15.3/libhdfs/pyhdfs_wrap.o \ > && ln -sf /home/ahmad/hadoop-0.15.3/libhdfs/libhdfs.so.1 > /home/ahmad/hadoop-0.15.3/libhdfs/libhdfs.so \ > && ln -s /home/ahmad/hadoop-0.15.3/libhdfs/libhdfs.so.1 > /home/ahmad/hadoop-0.15.3/libhdfs/_pyhdfs.so > /usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: > cannot find -ljvm > collect2: ld returned 1 exit status > make: *** [/home/ahmad/hadoop-0.15.3/libhdfs/libhdfs.so.1] Error 1 > > I have set the build path to the main libhdfs directory in hadoop (the > folder that contains hdfs_read, hdfs_write, hdfs_test, libhdfs.so, > libhdfs.so.1) > As a consequence of running 'make', it creates three files: > hdfsJniHelper.o, hdfs.o, pyhdfs_wrap.o in the build directory. Plus 'make' > somehow ends up deleting libhdfs.so.1. And I also dont get the file > _pyhdfs.so. > > It will be great if someone can diagnose my problem. > > > Regards, > > -- > Ahmad Humayun > Research Assistant > Computer Science Dpt., LUMS > +92 321 4457315 -- Ahmad Humayun Research Assistant Computer Science Dpt., LUMS +92 321 4457315
