PSOPT-Installer Copyright (C) 2014, 2015 Markus Sauermann This program is free software: you can redistribute it and/or modify it under the GPL V3 terms in the file COPYING. Installation scripts for PSOPT [1] Currently supported: - Debian Wheezy [2] natively - Ubuntu 12.04 [3] natively - Windows 64 Bit [4] with MinGW/MSYS [5] and TDM-GCC [6] The three scripts dwpis.sh, uppis.sh and psopt-installer-windows-mingw-64bit.sh are used to install PSOPT in Debian, Ubuntu and Windows respectively. Last successful tests: February 2015 Installation on Debian ====================== As a prerequisite, the user must be in the groups sudo and staff. Usage: In a shell on Debian do the following: # ./dwpis.sh If you do not have downloaded the script yet, do: # wget https://raw.github.com/Sauermann/psopt-installer/master/dwpis.sh # chmod a+x dwpis.sh # ./dwpis.sh In both cases follow the instructions (enter password for sudo twice) Installation on Ububtu ====================== Usage: In a shell on Ububtu do the following: # ./uppis.sh If you do not have downloaded the script yet, do: # wget https://raw.github.com/Sauermann/psopt-installer/master/uppis.sh # chmod a+x uppis.sh # ./uppis.sh Installation on Windows 64 Bit ============================== This installation relies completely on Open-source-software, no compiler from Microsoft is needed. 32 Bit Installations are not supported. OpenBLAS [7] is used as replacement of the Blas Reference Implementation. PSOPT will be installed in the directory where the script is executed. You may uninstall it by deleting the directory it was installed into. MSYS ---- Get the MinGW/MSYS Installation tool mingw-get-setup.exe from [5]. Install it in the directory $MinGWInstallDir of your choice (should not have whitespaces) with these packages: - msys-base (bin) - msys-wget (bin) - msys-unzip (bin) - mingw-developer-tooklitm (bin) - msys-console (bin) optional Optionally in order to get a better console, you might want to use Console 2.00 or these articles might be helpful: http://mingw.5.n7.nabble.com/mingw-get-install-console-2-td9309.html http://article.gmane.org/gmane.comp.gnu.mingw.msys/3930 TDM-GCC ------- A 64 bit version of the GCC compiler suite is needed. Download tdm-gcc-webdl.exe (On-demand installer) from [6]. Follow the installation instructions and install it in the directory $InstallationPathOfMinGW64 of your choice (must be different from $MinGWInstallDir) ->Create ->select "MinGW-w64/TDM64 (32-bit and 64-bit)" Select the following components to install: - gcc -> core - gcc -> c++ - gcc -> fortran - gcc -> openmp - binutils - mingw64-runtime - mingw32-make: deselect - gdb: optional - Start Menu items: optional - Add to PATH: deselect In the directory $MinGWInstallDir/msys/1.0/etc/ copy fstab.sample to fstab and change in this file the lines --- c:/mingw /mingw c:/ActiveState/perl /perl --- to --- $InstallationPathOfMinGW64 /mingw #c:/ActiveState/perl /perl --- Gnuplot ------- Usage of Gnuplot is recommended. Get the current version (V 5.0.0) from [8] and install it. Be sure to include the gnuplot executable into the path - the Gnuplot installer has an option for this. Installation ------------ During the installation process several software packages are downloaded and compiled so be aware that it will take some time. On test computers it took about 60-90 minutes und uses roughly 1.5 GB of empty HardDisk space. Start a msys shell (can be found in $MinGWInstallDir\msys\1.0\msys.bat) user@computer:~$ cd installation_dir user@computer:~/installation_dir$ wget -O psopt-installer.zip --no-check-certificate https://github.com/Sauermann/psopt-installer/archive/master.zip user@computer:~/installation_dir$ unzip psopt-installer.zip user@computer:~/installation_dir$ cp -r psopt-installer-master/patches . user@computer:~/installation_dir$ cp -r psopt-installer-master/scripts . user@computer:~/installation_dir$ ./psopt-installer-master/psopt-installer-windows-mingw-64bit.sh user@computer:~/installation_dir$ rm -rf patches scripts Usage ----- In the directory 'installation_dir' there will be an example-project 'obstacle' from the PSOPT-examples dir. The accompanying Makefile should help you get started to create your own projet. Known issues ============ On Debian some examples do not give the expected results. On Ubuntu the display of gnuplot charts does not happen automatically. Contact ======= Send bugreports, comments or corrections preferrably via the github page https://github.com/Sauermann/psopt-installer or as an alternative to the E-Mail psopt-installer@sauermann-consulting.de Thanks for your Contributions and Suggestions ============================================= Tavert Quang Hoa Le References ========== [1] http://www.psopt.org/ [2] http://www.debian.org/releases/wheezy/ [3] http://releases.ubuntu.com/12.04/ [4] http://windows.microsoft.com [5] http://www.mingw.org/ [6] http://tdm-gcc.tdragon.net/ [7] http://www.openblas.net/ [8] http://www.gnuplot.info/