hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmad Humayun" <ahmad.hu...@gmail.com>
Subject pyhdfs compilation help
Date Thu, 17 Apr 2008 16:50:58 GMT
Hello there,

I'm trying to get the swig (python) wrapper for libhdfs working using
Saptarshi's guide

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/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
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,
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.


Ahmad Humayun
Research Assistant
Computer Science Dpt., LUMS
+92 321 4457315

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message