paulflang / SBML2Julia

A tool to for optimizing parameters of ordinary differential equation (ODE) models. SBML2Julia translates a model from SBML/PEtab format into Julia for Mathematical Programming (JuMP), performs the optimization task and returns the results.
https://sbml2julia.readthedocs.io/en/latest/
MIT License
5 stars 1 forks source link

Cannot install linear solver #7

Closed paulflang closed 4 years ago

paulflang commented 4 years ago

I am struggling to get the ma57 solver working. @sshin23 : do you have an idea what I am doing wrong? I ran

sudo apt-get install gcc g++ gfortran patch wget pkg-config liblapack-dev libmetis-dev

To obtain the HSL code, I followed the following steps:

  1. Go to http://hsl.rl.ac.uk/ipopt.
  2. Choose whether to download either the Archive code or the HSL Full code. To download, select the relevant "source" link.
  3. Follow the instructions on the website, read the license, and submit the registration form.
  4. Wait for an email containing a download link (this should take no more than one working day).
  5. Compile the HSL code via the COIN-OR Tools project ThirdParty-HSL.
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software$ git clone https://github.com/coin-or-tools/ThirdParty-HSL.git
Cloning into 'ThirdParty-HSL'...
remote: Enumerating objects: 165, done.
remote: Counting objects: 100% (165/165), done.
remote: Compressing objects: 100% (102/102), done.
remote: Total 1239 (delta 106), reused 114 (delta 63), pack-reused 1074
Receiving objects: 100% (1239/1239), 1.16 MiB | 342.00 KiB/s, done.
Resolving deltas: 100% (831/831), done.
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software$ cd ThirdParty-HSL
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ cd ..
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software$ ls
0001_objectivePrior  Benchmark-Models-PEtab  coinhsl-2019.05.21.tar.gz  DisFit  petab_test_suite  ThirdParty-HSL
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software$ tar -xzf coinhsl-2019.05.21.tar.gz 

I then copied the coinhsl-2019.05.21 directory into /media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL and renamed it to coinhsl. Next I configured, built and installed HSL:

(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software$ cd ThirdParty-HSL/
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ ./configure
configure: error: cannot find sources (coinhsl/common/deps.f) in . or ..
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ make
make: *** No targets specified and no makefile found.  Stop.
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran...  -L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../.. -lgfortran -lm -lquadmath
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore
checking whether gfortran understands -c and -o together... yes
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking whether gfortran understands -c and -o together... yes
configure: WARNING: Libtool does not cope well with whitespace in `pwd`
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking the archiver (ar) interface... ar
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking if gfortran supports -c -o file.o... (cached) yes
checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking if gfortran supports -c -o file.o... (cached) yes
checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: libtool version info: -version-number 2:1:0
checking for pkgconf... no
checking for pkg-config... pkg-config
checking pkg-config is at least version 0.16.0... yes: 0.29.1
configure: pkg-config path is "/usr/local/lib/pkgconfig:"
checking for MC19... yes
checking for MA27... yes
checking for MA28... yes
checking for MA57... yes
checking for MA77... yes
checking for MA86... yes
checking for MA97... yes
checking for C interface to MC68... yes
checking for deps90.f90... yes
checking for function dsyev_ in -lmkl_core -lmkl_intel_lp64 -lmkl_sequential -lm ... no
checking for function dsyev in -lmkl_core -lmkl_intel_lp64 -lmkl_sequential -lm ... no
checking for function DSYEV_ in -lmkl_core -lmkl_intel_lp64 -lmkl_sequential -lm ... no
checking for function DSYEV in -lmkl_core -lmkl_intel_lp64 -lmkl_sequential -lm ... no
checking for lapack.pc and blas.pc... yes
checking for function dsyev_ in -L/usr/lib/x86_64-linux-gnu/atlas -llapack ... yes
checking for library containing cos... -lm
checking for package Metis with function metis_nodend... yes
checking metis.h usability... yes
checking metis.h presence... yes
checking for metis.h... yes
checking for Fortran flag to compile preprocessed .F files... none
checking how to define symbols for preprocessed Fortran... -D
checking for Fortran flag to compile preprocessed .f files... -cpp
checking for Fortran flag to compile preprocessed .f90 files... -cpp
checking for gfortran option to support OpenMP... -fopenmp
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating coinhsl.pc
config.status: creating config.h
config.status: creating CoinHslConfig.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: Configuration of CoinHSL successful
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ make
make  all-am
make[1]: Entering directory '/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL'
  F77      coinhsl/common/deps.lo
coinhsl/common/deps.f:623:72:

  623 |               IF (IJFIR) 230,220,240
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
coinhsl/common/deps.f:1160:72:

 1160 |             IF (IFIR) 860,880,870
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
coinhsl/common/deps.f:1216:72:

 1216 |             IF (IFIR) 930,940,950
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
coinhsl/common/deps.f:2614:72:

 2614 |    10 IW1(I,1) = IW1(I-1,1) + LENR(I-1)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
coinhsl/common/deps.f:2632:72:

 2632 |    30 LENR(II) = LENOFF(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 30 at (1)
coinhsl/common/deps.f:2644:72:

 2644 |    40 IQ(I) = I
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 40 at (1)
coinhsl/common/deps.f:2659:72:

 2659 |    50 ICN(JJ) = ICN(J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 50 at (1)
coinhsl/common/deps.f:2668:72:

 2668 |    70 IW(II,1) = IP(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 70 at (1)
coinhsl/common/deps.f:2670:72:

 2670 |    80 IP(I) = IW(I,1)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 80 at (1)
coinhsl/common/deps.f:2722:72:

 2722 |   100     IW1(I,1) = IW1(I-1,1) + LENOFF(I-1)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 100 at (1)
coinhsl/common/deps.f:2835:72:

 2835 |    10 W(I) = ZERO
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
coinhsl/common/deps.f:2845:72:

 2845 |    30   WROWL = WROWL + DABS(A(JJ))
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 30 at (1)
coinhsl/common/deps.f:2854:72:

 2854 |    80   W(J) = DMAX1(DABS(A(JJ)),W(J))
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 80 at (1)
coinhsl/common/deps.f:2860:72:

 2860 |   200 AMAXU = DMAX1(AMAXU,W(I))
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 200 at (1)
  F77      coinhsl/mc19/mc19d.lo
coinhsl/mc19/mc19d.f:37:72:

   37 |       DO 10 I=1,N
      |                                                                        1
Warning: Fortran 2018 deleted feature: Shared DO termination label 10 at (1)
  F77      coinhsl/ma27/ma27d.lo
  F77      coinhsl/ma28/ma28d.lo
coinhsl/ma28/ma28d.f:658:72:

  658 |           IF (IW1(INEW,3)-IW1(JNEW,3)) 40,60,50
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
coinhsl/ma28/ma28d.f:678:72:

  678 |             IF (JNEW-JCOMP) 80,130,90
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
  F77      coinhsl/ma57/ma57d.lo
  FC       coinhsl/common/deps90.lo
  FC       coinhsl/hsl_mc68/C/hsl_mc68i_ciface.lo
  FC       coinhsl/hsl_ma77/hsl_ma77d.lo
  FC       coinhsl/hsl_ma77/C/hsl_ma77d_ciface.lo
  FC       coinhsl/hsl_ma86/hsl_ma86d.lo
  FC       coinhsl/hsl_ma86/C/hsl_ma86d_ciface.lo
  FC       coinhsl/hsl_ma97/hsl_ma97d.lo
  FC       coinhsl/hsl_ma97/C/hsl_ma97d_ciface.lo
  CC       metis_adapter.lo
  F77LD    libcoinhsl.la
make[1]: Leaving directory '/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL'
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ sudo make install
[sudo] password for paul: 
make[1]: Entering directory '/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL'
 /usr/bin/mkdir -p '/usr/local/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libcoinhsl.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libcoinhsl.so.2.1.0 /usr/local/lib/libcoinhsl.so.2.1.0
libtool: install: (cd /usr/local/lib && { cp -pR -f libcoinhsl.so.2.1.0 libcoinhsl.so.2 || { rm -f libcoinhsl.so.2 && cp -pR libcoinhsl.so.2.1.0 libcoinhsl.so.2; }; })
libtool: install: (cd /usr/local/lib && { cp -pR -f libcoinhsl.so.2.1.0 libcoinhsl.so || { rm -f libcoinhsl.so && cp -pR libcoinhsl.so.2.1.0 libcoinhsl.so; }; })
libtool: install: /usr/bin/install -c .libs/libcoinhsl.lai /usr/local/lib/libcoinhsl.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
/sbin/ldconfig.real: /usr/local/lib/libcoinhsl.so.2 is not a symbolic link

----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/usr/local/include/coin-or/hsl'
 /usr/bin/install -c -m 644 CoinHslConfig.h coinhsl/hsl_mc68/C/hsl_mc68i.h coinhsl/hsl_ma77/C/hsl_ma77d.h coinhsl/hsl_ma86/C/hsl_ma86d.h coinhsl/hsl_ma97/C/hsl_ma97d.h '/usr/local/include/coin-or/hsl'
 /usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 coinhsl.pc '/usr/local/lib/pkgconfig'
make[1]: Leaving directory '/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL'
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ 

Unfortunately, I could not find where the library and binaries are installed:

(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ cd /
(std) paul@paul-VirtualBox:/$ ls
'~'   bin   boot   cdrom   dev   etc   home   lib   lib32   lib64   libx32   lost+found   media   mnt   opt   proc   root   run   sbin   snap   srv   sys   tmp   usr   var
(std) paul@paul-VirtualBox:/$ cd opt
(std) paul@paul-VirtualBox:/opt$ ls
containerd  julia-1.0.5  VBoxGuestAdditions-6.0.20
(std) paul@paul-VirtualBox:/opt$ cd julia-1.0.5/
(std) paul@paul-VirtualBox:/opt/julia-1.0.5$ ls
bin  etc  include  lib  LICENSE.md  share
(std) paul@paul-VirtualBox:/opt/julia-1.0.5$ cd bin/
(std) paul@paul-VirtualBox:/opt/julia-1.0.5/bin$ ls
julia
(std) paul@paul-VirtualBox:/opt/julia-1.0.5/bin$ cd ..
(std) paul@paul-VirtualBox:/opt/julia-1.0.5$ cd lib/
(std) paul@paul-VirtualBox:/opt/julia-1.0.5/lib$ ls
julia  libjulia.so  libjulia.so.1  libjulia.so.1.0
(std) paul@paul-VirtualBox:/opt/julia-1.0.5/lib$ cd ..
(std) paul@paul-VirtualBox:/opt/julia-1.0.5$ ls
bin  etc  include  lib  LICENSE.md  share
(std) paul@paul-VirtualBox:/opt/julia-1.0.5$ cd ..
(std) paul@paul-VirtualBox:/opt$ ls
containerd  julia-1.0.5  VBoxGuestAdditions-6.0.20
(std) paul@paul-VirtualBox:/opt$ cd ..
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ ls
ar-lib              compile                   config.status              hsl_ma54_double.mod        hsl_ma97_double_ciface.mod   hsl_mc68_integer.mod  hsl_of01_integer.mod  LICENSE          metis_adapter.lo
coinhsl             config_coinhsl_default.h  config.sub                 hsl_ma64_double.mod        hsl_ma97_double.mod          hsl_mc68_single.mod   hsl_zb01_integer.mod  ltmain.sh        missing
CoinHslConfig.h     config.guess              configure                  hsl_ma77_double_iface.mod  hsl_mc34_double.mod          hsl_mc69_double.mod   hsl_zd11_double.mod   Makefile         README.md
CoinHslConfig.h.in  config.h                  configure.ac               hsl_ma77_double.mod        hsl_mc64_double.mod          hsl_mc78_integer.mod  install-sh            Makefile.am      stamp-h1
coinhsl.pc          config.h.in               depcomp                    hsl_ma86d_ciface.mod       hsl_mc68_double.mod          hsl_mc80_double.mod   libcoinhsl.la         Makefile.in      stamp-h2
coinhsl.pc.in       config.log                hsl_kb22_long_integer.mod  hsl_ma86_double.mod        hsl_mc68_integer_ciface.mod  hsl_of01_double.mod   libtool               metis_adapter.c
(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ 

I also did not know which binaries I have to provide the path to, so I just provided the path to where I extracted the HSL library. Unfortunately, the file libhsl.so was not found:

(std) paul@paul-VirtualBox:/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ThirdParty-HSL$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.0.5 (2019-09-09)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> ENV["JULIA_IPOPT_LIBRARY_PATH"] = "/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/"
"/media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/"

julia> import Pkg; Pkg.build("Ipopt")
  Building CodecZlib ─→ `~/.julia/packages/CodecZlib/5t9zO/deps/build.log`
  Building MbedTLS ───→ `~/.julia/packages/MbedTLS/X4xar/deps/build.log`
  Building ZipFile ───→ `~/.julia/packages/ZipFile/DW0Qr/deps/build.log`
  Building CodecBzip2 → `~/.julia/packages/CodecBzip2/T5yr7/deps/build.log`
  Building Ipopt ─────→ `~/.julia/packages/Ipopt/ruIXY/deps/build.log`

...

julia> for i_start in 1:1
           m = Model(with_optimizer(Ipopt.Optimizer, tol=1e-6, linear_solver="ma57"))
...
Optimizing:
Exception of type: OPTION_INVALID in file "../../../../Ipopt/src/Algorithm/IpAlgBuilder.cpp" at line 295:
 Exception message: Selected linear solver MA57 not available.
Tried to obtain MA57 from shared library "libhsl.so", but the following error occured:
libhsl.so: cannot open shared object file: No such file or directory

EXIT: Invalid option encountered.
sshin23 commented 4 years ago

Have you checked out the directory /usr/local/lib? Probably /media/sf_DPhil_Project/Project07_Parameter Fitting/df_software/ is where the source codes are and the shared library files are installed at /usr/local/lib, as indicated from the output message. Could you rebuild Ipopt.jl with

ENV["JULIA_IPOPT_LIBRARY_PATH"]  = "/usr/local/lib"

and try again?

paulflang commented 4 years ago

Oh, I think this issue is fixed since we skyped. I should have closed it, sorry.