udacity / CarND-MPC-Quizzes

CarND MPC Quizzes
MIT License
131 stars 433 forks source link

Error on make #9

Closed anasmatic closed 5 years ago

anasmatic commented 6 years ago

using Bash on Windows10 after following instalation instructions I got this error on make

[ 50%] Building CXX object CMakeFiles/mpc.dir/src/MPC.cpp.o In file included from /usr/include/cppad/ipopt/solve.hpp:405:0, from /mnt/c/D/Anas/mozakra/ML/CarND013/term2/CarND-MPC-Quizzes/mpc_to_line/src/MPC.cpp:4: /usr/include/cppad/ipopt/solve_callback.hpp:16:40: fatal error: coin/IpIpoptApplication.hpp: No such file or directory compilation terminated. CMakeFiles/mpc.dir/build.make:62: recipe for target 'CMakeFiles/mpc.dir/src/MPC.cpp.o' failed make[2]: [CMakeFiles/mpc.dir/src/MPC.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mpc.dir/all' failed make[1]: [CMakeFiles/mpc.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

RobinCPC commented 6 years ago

Hi, I had the same error after make. If you use install-ubuntu-MPC.sh to install Ipopt, it may not install successfully. I use below command to install Ipopt (it takes a long while to install). ./install_ipopt.sh Ipopt-3.12.7/ After that, make complete without error.

FYI, my os is ubuntu 14.04.
And, I also sent a pull request to update install script.

acherep commented 6 years ago

this worked for me with sudo, ie: sudo ./install_ipopt.sh Ipopt-3.12.7/

AlessandroRestagno commented 6 years ago

sudo ./install_ipopt.sh Ipopt-3.12.7/ worked for me, as well.

jensakut commented 6 years ago

Hello,

I tried the same approach on windows 10 / ubuntu bash but the command aborts with the following stuff. any suggestions what went wrong? one thing I already found was to not use a directory with a space in it..

checking whether user supplied BLASLIB="/usr/local/lib/libcoinblas.a -lgfortran" works... no configure: error: user supplied BLAS library "/usr/local/lib/libcoinblas.a -lgfortran" does not work configure: error: /bin/bash './configure' failed for ThirdParty/Mumps Making all in ThirdParty/ASL make[1]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' Making all in ThirdParty/Mumps make[1]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/Mumps' make[1]: *** No rule to make target 'all'. Stop. make[1]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/Mumps' Makefile:323: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 Making all in ThirdParty/ASL make[1]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' Making all in ThirdParty/Mumps make[1]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/Mumps' make[1]: *** No rule to make target 'all'. Stop. make[1]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/Mumps' Makefile:323: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 Making install in ThirdParty/ASL make[1]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' make[2]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib" if test -f libcoinasl.la; then \ /bin/bash ./../../libtool --mode=install /usr/bin/install -c libcoinasl.la "/usr/local/lib/libcoinasl.la"; \ fi /usr/bin/install -c .libs/libcoinasl.so.1.3.6 /usr/local/lib/libcoinasl.so.1.3.6 /usr/bin/install: cannot create regular file '/usr/local/lib/libcoinasl.so.1.3.6': Permission denied Makefile:740: recipe for target 'install-exec-local' failed make[2]: *** [install-exec-local] Error 1 make[2]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' Makefile:625: recipe for target 'install-am' failed make[1]: *** [install-am] Error 2 make[1]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' Makefile:323: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1

omitheaussie commented 6 years ago

@jensakut: I have the exact same error. I tried many different ways to install the ipopt including: ./install_ipopt.sh Ipopt-3.12.7/ sudo ./install_ipopt.sh Ipopt-3.12.7/

Both these fail with: /usr/bin/install -c .libs/libcoinasl.so.1.3.6 /usr/local/lib/libcoinasl.so.1.3.6 /usr/bin/install: cannot create regular file '/usr/local/lib/libcoinasl.so.1.3.6': Permission denied Makefile:740: recipe for target 'install-exec-local' failed make[2]: [install-exec-local] Error 1 make[2]: Leaving directory '/mnt/c/Users/Omkar/CarND-Term2-Workbooks/CarND-MPC-Quizzes-master/Ipopt-3.12.7/ThirdParty/ASL' Makefile:625: recipe for target 'install-am' failed make[1]: [install-am] Error 2 make[1]: Leaving directory '/mnt/c/Users/Omkar/CarND-Term2-Workbooks/CarND-MPC-Quizzes-master/Ipopt-3.12.7/ThirdParty/ASL' Makefile:323: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1

I am kind of stuck here. Without these I am not even finished with the in-class quiz!!

omitheaussie commented 6 years ago

Weird .. I take it back. On my third attempt (doing aparently something different) sudo ./install_ipopt.sh Ipopt-3.12.7/ worked to install ipopt. Now I have a new error: CarND-MPC-Quizzes-master/mpc_to_line/src/MPC.cpp:2:22: fatal error: IpTNLP.hpp: No such file or directory compilation terminated.

mvirgo commented 5 years ago

Closing this one out as it looks like the answer was found - we also have a note now in the related installation instructions about specifying the directory. Thanks for posting the Issue!

KyuhwanYeon commented 4 years ago

Hello,

I tried the same approach on windows 10 / ubuntu bash but the command aborts with the following stuff. any suggestions what went wrong? one thing I already found was to not use a directory with a space in it..

checking whether user supplied BLASLIB="/usr/local/lib/libcoinblas.a -lgfortran" works... no configure: error: user supplied BLAS library "/usr/local/lib/libcoinblas.a -lgfortran" does not work configure: error: /bin/bash './configure' failed for ThirdParty/Mumps Making all in ThirdParty/ASL make[1]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' Making all in ThirdParty/Mumps make[1]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/Mumps' make[1]: *** No rule to make target 'all'. Stop. make[1]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/Mumps' Makefile:323: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 Making all in ThirdParty/ASL make[1]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' Making all in ThirdParty/Mumps make[1]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/Mumps' make[1]: *** No rule to make target 'all'. Stop. make[1]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/Mumps' Makefile:323: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 Making install in ThirdParty/ASL make[1]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' make[2]: Entering directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib" if test -f libcoinasl.la; then \ /bin/bash ./../../libtool --mode=install /usr/bin/install -c libcoinasl.la "/usr/local/lib/libcoinasl.la"; \ fi /usr/bin/install -c .libs/libcoinasl.so.1.3.6 /usr/local/lib/libcoinasl.so.1.3.6 /usr/bin/install: cannot create regular file '/usr/local/lib/libcoinasl.so.1.3.6': Permission denied Makefile:740: recipe for target 'install-exec-local' failed make[2]: *** [install-exec-local] Error 1 make[2]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' Makefile:625: recipe for target 'install-am' failed make[1]: *** [install-am] Error 2 make[1]: Leaving directory '/mnt/c/Users/jakut/Documents/Udacity/CarND-MPC-Quizzes/Ipopt-3.12.7/ThirdParty/ASL' Makefile:323: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1

I also have the same problem.

Try sudo. It was working for me

sudo ./install_ipopt.sh Ipopt-3.12.7