csu-hmc / opty

A library for using direct collocation in the optimization of dynamic systems.
http://opty.readthedocs.io
Other
94 stars 20 forks source link

The Debian build of IPOPT doesn't seem to work. #36

Closed moorepants closed 4 years ago

moorepants commented 9 years ago

On a fresh Ubuntu 14.04,

vagrant@vagrant-ubuntu-trusty-64:~$ sudo apt-get install coinor-libipopt1 coinor-libipopt-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libblacs-mpi-dev libblacs-mpi1 libblas3 libcr0 libgfortran3 libhwloc-dev
  libhwloc-plugins libhwloc5 libibverbs-dev libibverbs1 liblapack3 libltdl7
  libmumps-4.10.0 libmumps-dev libopenmpi-dev libopenmpi1.6 libpci-dev
  libscalapack-mpi-dev libscalapack-mpi1 libtorque2 libxml2-dev
  mpi-default-bin mpi-default-dev ocl-icd-libopencl1 openmpi-bin
  openmpi-common zlib1g-dev
Suggested packages:
  blcr-dkms libhwloc-contrib-plugins scalapack-doc pkg-config opencl-icd
  gfortran openmpi-checkpoint
The following NEW packages will be installed:
  coinor-libipopt-dev coinor-libipopt1 libblacs-mpi-dev libblacs-mpi1 libblas3
  libcr0 libgfortran3 libhwloc-dev libhwloc-plugins libhwloc5 libibverbs-dev
  libibverbs1 liblapack3 libltdl7 libmumps-4.10.0 libmumps-dev libopenmpi-dev
  libopenmpi1.6 libpci-dev libscalapack-mpi-dev libscalapack-mpi1 libtorque2
  libxml2-dev mpi-default-bin mpi-default-dev ocl-icd-libopencl1 openmpi-bin
  openmpi-common zlib1g-dev
apt-get install unzip python-numpy python-matplotlib cython
apt0get install  build-essential pkg-config gfortran libblas3gf libblas-dev liblapack3gf liblapack-dev
wget https://bitbucket.org/moorepants/cyipopt/get/tip.zip
unzip tip
cd moorepants-cyipopt-beafd15fbfe2/
python setup.py install
vagrant@vagrant-ubuntu-trusty-64:~/moorepants-cyipopt-beafd15fbfe2$ cd test/
vagrant@vagrant-ubuntu-trusty-64:~/moorepants-cyipopt-beafd15fbfe2/test$ ls
examplehs071.py  lasso.py
vagrant@vagrant-ubuntu-trusty-64:~/moorepants-cyipopt-beafd15fbfe2/test$ python examplehs071.py 
/usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/vagrant/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
  warnings.warn(msg, UserWarning)
[vagrant-ubuntu-trusty-64:09574] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_paffinity_hwloc: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[vagrant-ubuntu-trusty-64:09574] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_carto_auto_detect: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[vagrant-ubuntu-trusty-64:09574] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_carto_file: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[vagrant-ubuntu-trusty-64:09574] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_shmem_mmap: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[vagrant-ubuntu-trusty-64:09574] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_shmem_posix: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[vagrant-ubuntu-trusty-64:09574] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_shmem_sysv: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
--------------------------------------------------------------------------
It looks like opal_init failed for some reason; your parallel process is
likely to abort.  There are many reasons that a parallel process can
fail during opal_init; some of which are due to configuration or
environment problems.  This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):

  opal_shmem_base_select failed
  --> Returned value -1 instead of OPAL_SUCCESS
--------------------------------------------------------------------------
[vagrant-ubuntu-trusty-64:09574] [[INVALID],INVALID] ORTE_ERROR_LOG: Error in file runtime/orte_init.c at line 79
--------------------------------------------------------------------------
It looks like MPI_INIT failed for some reason; your parallel process is
likely to abort.  There are many reasons that a parallel process can
fail during MPI_INIT; some of which are due to configuration or environment
problems.  This failure appears to be an internal failure; here's some
additional information (which may only be relevant to an Open MPI
developer):

  ompi_mpi_init: orte_init failed
  --> Returned "Error" (-1) instead of "Success" (0)
--------------------------------------------------------------------------
*** An error occurred in MPI_Init
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL: your MPI job will now abort
[vagrant-ubuntu-trusty-64:9574] Local abort before MPI_INIT completed successfully; not able to aggregate error messages, and not able to guarantee that all other processes were killed!
moorepants commented 4 years ago

This is too old to worry about. They work in newer versions of Ubuntu.