<font>Dear Sir/Madam<br><br></font><pre><font>I met problems in installing IPOPT (latest version) Matlab interface on my 64bit Linux Cluster.<br><br>First I install IPOPT correctly following the instruction(At least ,it seems so.).And then cd to &quot;..../Ipopt/contrib/MatlabInterface/src&quot; ,&quot;make intall&quot;<br>
<br>then follows the below information</font>. Could you help me figure out what I did wrong in the installation process?<br><br>Best,<br><br>Lianghai Wu<br></pre>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>
make install<br>/gpfs/runtime/opt/matlab/R2010b/bin/mex -v -cxx -O CC=&quot;mpic++&quot; CXX=&quot;mpic++&quot; LD=&quot;mpic++&quot; COPTIMFLAGS=&quot;-O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long   -DIPOPT_BUILD -DMATLAB_MEXFILE &quot; CXXOPTIMFLAGS=&quot;-O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long   -DIPOPT_BUILD -DMATLAB_MEXFILE &quot; LDOPTIMFLAGS=&quot;-O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long   -DIPOPT_BUILD -DMATLAB_MEXFILE   -Wl,--rpath -Wl,/users/jz7/data/wlh20111024/CoinIpopt/lib&quot;  `PKG_CONFIG_PATH=/users/jz7/data/wlh20111024/CoinIpopt/lib/pkgconfig:/users/jz7/data/wlh20111024/CoinIpopt/share/pkgconfig:/gpfs/runtime/opt/gcc/4.5.1/lib/pkgconfig:/gpfs/runtime/core/5.4-updates/lib/pkgconfig /usr/bin/pkg-config --libs ipopt` -output ipopt.mexa64 matlabexception.o matlabfunctionhandle.o matlabjournal.o iterate.o ipoptoptions.o options.o sparsematrix.o callbackfunctions.o matlabinfo.o matlabprogram.o ipopt.o<br>
-&gt; mexopts.sh sourced from directory (DIR = $HOME/.matlab/$REL_VERSION)<br>   FILE = /users/jz7/.matlab/R2010b/mexopts.sh<br>----------------------------------------------------------------<br>-&gt;    MATLAB                = /gpfs/runtime/opt/matlab/R2010b<br>
-&gt;    CC                    = mpic++<br>-&gt;    CC flags:<br>         CFLAGS             = -ansi -D_GNU_SOURCE  -fexceptions -fPIC -fno-omit-frame-pointer -pthread<br>         CDEBUGFLAGS        = -g<br>         COPTIMFLAGS        = -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long   -DIPOPT_BUILD -DMATLAB_MEXFILE <br>
         CLIBS              = -Wl,-rpath-link,/gpfs/runtime/opt/matlab/R2010b/bin/glnxa64 -L/gpfs/runtime/opt/matlab/R2010b/bin/glnxa64 -lmx -lmex -lmat -lm -lstdc++<br>         arguments          =  -DMX_COMPAT_32<br>-&gt;    CXX                   = mpic++<br>
-&gt;    CXX flags:<br>         CXXFLAGS           = -ansi -D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread<br>         CXXDEBUGFLAGS      = -g<br>         CXXOPTIMFLAGS      = -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long   -DIPOPT_BUILD -DMATLAB_MEXFILE <br>
         CXXLIBS            = -Wl,-rpath-link,/gpfs/runtime/opt/matlab/R2010b/bin/glnxa64 -L/gpfs/runtime/opt/matlab/R2010b/bin/glnxa64 -lmx -lmex -lmat -lm<br>         arguments          =  -DMX_COMPAT_32<br>-&gt;    FC                    = g95<br>
-&gt;    FC flags:<br>         FFLAGS             = -fexceptions -fPIC -fno-omit-frame-pointer<br>         FDEBUGFLAGS        = -g<br>         FOPTIMFLAGS        = -O<br>         FLIBS              = -Wl,-rpath-link,/gpfs/runtime/opt/matlab/R2010b/bin/glnxa64 -L/gpfs/runtime/opt/matlab/R2010b/bin/glnxa64 -lmx -lmex -lmat -lm<br>
         arguments          =  -DMX_COMPAT_32<br>-&gt;    LD                    = mpic++<br>-&gt;    Link flags:<br>         LDFLAGS            = -pthread -shared -Wl,--version-script,/gpfs/runtime/opt/matlab/R2010b/extern/lib/glnxa64/mexFunction.map -Wl,--no-undefined<br>
         LDDEBUGFLAGS       = -g<br>         LDOPTIMFLAGS       = -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long   -DIPOPT_BUILD -DMATLAB_MEXFILE   -Wl,--rpath -Wl,/users/jz7/data/wlh20111024/CoinIpopt/lib<br>
         LDEXTENSION        = .mexa64<br>         arguments          =  -L/users/jz7/data/wlh20111024/CoinIpopt/lib -L/gpfs/runtime/opt/openmpi/1.4.3/lib -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1 -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../x86_64-unknown-linux-gnu/lib -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../.. -lipopt -lcoinlapack -lcoinblas -lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl -lnsl -lutil -lgfortran -lm -lgcc_s -lpthread<br>
-&gt;    LDCXX                 = <br>-&gt;    Link flags:<br>         LDCXXFLAGS         = <br>         LDCXXDEBUGFLAGS    = <br>         LDCXXOPTIMFLAGS    = <br>         LDCXXEXTENSION     = <br>         arguments          =  -L/users/jz7/data/wlh20111024/CoinIpopt/lib -L/gpfs/runtime/opt/openmpi/1.4.3/lib -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1 -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../x86_64-unknown-linux-gnu/lib -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../.. -lipopt -lcoinlapack -lcoinblas -lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl -lnsl -lutil -lgfortran -lm -lgcc_s -lpthread<br>
----------------------------------------------------------------<br><br>-&gt; mpic++ -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long   -DIPOPT_BUILD -DMATLAB_MEXFILE   -Wl,--rpath -Wl,/users/jz7/data/wlh20111024/CoinIpopt/lib -pthread -shared -Wl,--version-script,/gpfs/runtime/opt/matlab/R2010b/extern/lib/glnxa64/mexFunction.map -Wl,--no-undefined -o  &quot;ipopt.mexa64&quot;   &quot;matlabexception.o&quot;  &quot;matlabfunctionhandle.o&quot;  &quot;matlabjournal.o&quot;  &quot;iterate.o&quot;  &quot;ipoptoptions.o&quot;  &quot;options.o&quot;  &quot;sparsematrix.o&quot;  &quot;callbackfunctions.o&quot;  &quot;matlabinfo.o&quot;  &quot;matlabprogram.o&quot;  &quot;ipopt.o&quot;  -L/users/jz7/data/wlh20111024/CoinIpopt/lib -L/gpfs/runtime/opt/openmpi/1.4.3/lib -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1 -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../x86_64-unknown-linux-gnu/lib -L/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../.. -lipopt -lcoinlapack -lcoinblas -lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl -lnsl -lutil -lgfortran -lm -lgcc_s -lpthread -Wl,-rpath-link,/gpfs/runtime/opt/matlab/R2010b/bin/glnxa64 -L/gpfs/runtime/opt/matlab/R2010b/bin/glnxa64 -lmx -lmex -lmat -lm<br>
<br>/gpfs/runtime/opt/gcc/4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../x86_64-unknown-linux-gnu/bin/ld: matlabexception.o: relocation R_X86_64_32 against `.rodata.str1.8&#39; can not be used when making a shared object; recompile with -fPIC<br>
matlabexception.o: could not read symbols: Bad value<br>collect2: ld returned 1 exit status<br><br>    mex: link of &#39; &quot;ipopt.mexa64&quot;&#39; failed.<br clear="all"><br>-- <br>Lianghai Wu <br>Room 708, Yi-fu Science &amp; Education Building<br>
Lab. of Image Information Progressing<br>School of Computer and Information<br>Hefei University of Technology<br>P.O. BOX 98, No.193, Tunxi Road<br>Hefei, Anhui Province, 230009<br>P. R. China<br>Email: <a href="mailto:wulianghai1227@gmail.com" target="_blank">wulianghai1227@gmail.com</a><br>
Phone: +86-182 5519 1763 (Mobile)<br>