[mlpack-svn] [MLPACK] #357: error building mlpack
MLPACK Trac
trac at coffeetalk-1.cc.gatech.edu
Sat Aug 2 18:36:10 EDT 2014
#357: error building mlpack
----------------------+-----------------------------------------------------
Reporter: ftrovato | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: mlpack | Keywords:
Blocking: | Blocked By:
----------------------+-----------------------------------------------------
Dear mlpack developers,
I have downloaded and configured (cmake) mlpack on Ubuntu 14.04. However
when I try to build it I encounter the following error:
Linking CXX executable ../../../../bin/sparse_coding
/usr/bin/ld: warning: libgfortran.so.3, needed by //usr/lib/libblas.so.3,
not found (try using -rpath or -rpath-link)
//usr/lib/liblapack.so.3: undefined reference to
`_gfortran_string_len_trim at GFORTRAN_1.0'
//usr/lib/libblas.so.3: undefined reference to
`_gfortran_transfer_integer_write at GFORTRAN_1.4'
//usr/lib/liblapack.so.3: undefined reference to
`_gfortran_concat_string at GFORTRAN_1.0'
//usr/lib/libarpack.so.2: undefined reference to
`_gfortran_transfer_array_write at GFORTRAN_1.4'
//usr/lib/libblas.so.3: undefined reference to
`_gfortran_stop_string at GFORTRAN_1.0'
//usr/lib/libblas.so.3: undefined reference to
`_gfortran_transfer_character_write at GFORTRAN_1.4'
//usr/lib/libblas.so.3: undefined reference to
`_gfortran_st_write_done at GFORTRAN_1.0'
//usr/lib/liblapack.so.3: undefined reference to
`_gfortran_compare_string at GFORTRAN_1.0'
//usr/lib/libarpack.so.2: undefined reference to
`_gfortran_transfer_real_write at GFORTRAN_1.4'
//usr/lib/liblapack.so.3: undefined reference to
`_gfortran_pow_i4_i4 at GFORTRAN_1.0'
//usr/lib/libblas.so.3: undefined reference to
`_gfortran_st_write at GFORTRAN_1.0'
//usr/lib/liblapack.so.3: undefined reference to
`_gfortran_etime at GFORTRAN_1.0'
//usr/lib/libarpack.so.2: undefined reference to
`_gfortran_transfer_complex_write at GFORTRAN_1.4'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/sparse_coding] Error 1
make[1]: ***
[src/mlpack/methods/sparse_coding/CMakeFiles/sparse_coding.dir/all] Error
2
make: *** [all] Error 2
When I try to see the linked libraries with ldd /usr/lib/libblas.so.3, I
get:
linux-vdso.so.1 => (0x00007fffa6c95000)
libgfortran.so.3 => not found
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
(0x00007f4dc1ab5000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f4dc1896000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4dc1590000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4dc11ca000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4dc22b8000)
However libgfortran.so.3 is in /usr/lib/i386-linux-gnu/.
I also defined the variable LD_LIBRARY_PATH to include the above dir but
it did not work.
Still no luck when trying ldconfig -n /usr/lib/i386-linux-gnu/ or creating
the file mlpack.conf (with the line /usr/lib/i386-linux-gnu/) in
/etc/ld.so.conf.d/
I don't know how to proceed further to get mlpack installed. I hope you
can help me finding a solution to this problem.
Thank you,
Fabio
--
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/357>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed at Georgia Tech.
More information about the mlpack-svn
mailing list