How to install MATLAB on Ubuntu Desktop?

348 views
Skip to first unread message

Evgeniy Zhukov

unread,
Jun 1, 2016, 2:08:43 AM6/1/16
to USPEX
Please give me advice, how to install MATLAB on Ubuntu Desktop?

And how to resolve error, which is appear durind installation:
cp: не удалось выполнить stat для 'lib/': Нет такого файла или каталога
cp: не удалось выполнить stat для 'tests/': Нет такого файла или каталога



*------------------------------------------------------------------------------*
|                                                                              |
|             _|    _|     _|_|_|   _|_|_|     _|_|_|_|   _|      _|           |
|             _|    _|   _|         _|    _|   _|           _|  _|             |
|             _|    _|     _|_|     _|_|_|     _|_|_|         _|               |
|             _|    _|         _|   _|         _|           _|  _|             |
|               _|_|     _|_|_|     _|         _|_|_|_|   _|      _|           |
|                                                                              |
|                          Version 9.4.4 (04/10/2015)                          |
|                                                                              |
|             Evolutionary Algorithm Code for Structure Prediction             |
|                   more info at http://uspex.stonybrook.edu                   |
|                                                                              |
*------------------------------------------------------------------------------*

==========================
 Installing USPEX code ...
==========================



====================================================

====================================================



No MATLAB or Octave is not found! We need MATLAB or Octave to run USPEX.

Do you still want to install USPEX? (y/n) y


Please enter the USPEX install path :  /home/evgeniy/

Do you want to install USPEX at /home/evgeniy/ ? (y/n) y
 
======================================================
The USPEX install directory:
     /home/evgeniy/ 
is found. Do you want to install USPEX there? (y/n) y


===========================================================================
    Copying files, please  wait ...............                       
===========================================================================

cp: не удалось выполнить stat для 'lib/': Нет такого файла или каталога
cp: не удалось выполнить stat для 'tests/': Нет такого файла или каталога

==========================
    Install finished.
==========================


1) You can edit the file to change the install path of MATLAB or Octave:

   /home/evgeniy/CODEPATH

2) Please Set the Shell Environment Variables to enable USPEX code!

   For Bash shell system, add these lines to ~/.bashrc or ~/.profile or /etc/profile:
     export PATH=/home/evgeniy:$PATH
     export USPEXPATH=/home/evgeniy/src

   For C shell system, add these lines to ~/.cshrc or ~/.profile or /etc/profile:
     setenv PATH "/home/evgeniy:$PATH"
     setenv USPEXPATH "/home/evgeniy/src"

3) For tests running, please go to the tests folder and run the following command for more details:

   python /home/evgeniy/tests/USPEX_test.py -h


==========================
    Have fun with USPEX!   
==========================

Mahdi MSG

unread,
Jun 1, 2016, 12:18:46 PM6/1/16
to evgeniy.z...@gmail.com, USPEX
For installing Matlab on UBUNTU, follow steps in the link below: 
https://www.quora.com/How-do-I-download-and-install-MATLAB-on-Ubuntu-14-04

At the end you have to make sure you add Matlab directory in your $PATH:

export PATH=matlab_dir:$PATH, which matlab_dir is the directory you installed Matlab in.


--
You received this message because you are subscribed to the Google Groups "USPEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uspex+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Evgeniy Zhukov

unread,
Jun 4, 2016, 6:34:13 PM6/4/16
to USPEX
Hi, Mandi Davari

I followed the instruction and successfully install trial version MATLAB for my Ubuntu 16.04 LTS Desktop. Thank you.

I proceed for USPEX installation, and met the next problem, during "EX13"  test (see below in printout):
License Manager Error 4410

On Mathwork site no any clear explanation for such error.



Please support.



My printout:


evgeniy@evgeniy-VirtualBox:~/EX13$ USPEX -r
Submission dir copied to the current directory.
License checkout failed.
License Manager Error 4410
Invalid security token. (Status code: Unauthorized)

Troubleshoot this issue by visiting: 

Diagnostic Information:
Feature: MATLAB 
License path:  
Licensing error: 4410,0.
Severe:
Error checking out license
The program '[9074] : Native' has exited with code 1 (0x1).


It is look like need to downgrade my gcc compiller from 5.3.1 to 4.7.x, as explaned in some answer 

evgeniy@evgeniy-VirtualBox:~/EX13$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.3.1-14ubuntu2.1' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1) 
evgeniy@evgeniy-VirtualBox:~/EX13$ g95 -v
No command 'g95' found, did you mean:
 Command 'gt5' from package 'gt5' (universe)
 Command 'f95' from package 'gfortran' (main)
g95: command not found
evgeniy@evgeniy-VirtualBox:~/EX13$ g77 -v
No command 'g77' found, did you mean:
 Command 'f77' from package 'gfortran' (main)
 Command 'f77' from package 'fort77' (universe)
g77: command not found




Best Regards
Evgeniy

Mahdi MSG

unread,
Jun 7, 2016, 4:52:27 PM6/7/16
to evgeniy.z...@gmail.com, USPEX
It seems that you did not activate your Matlab. Maybe trial version is not enough since it does not have all functions in the trial version. 

I suggest you use Octave if licensing Matlab does not work for you. 

Mahdi
On Jun 4, 2016, at 6:34 PM, Evgeniy Zhukov <evgeniy.z...@gmail.com> wrote:

License Manager Error 4410


Evgeniy Zhukov

unread,
Jun 8, 2016, 2:58:39 PM6/8/16
to USPEX, evgeniy.z...@gmail.com
Ok, Mahdi.

I Install Octave succsessfully, but meet the next problem:


evgeniy@evgeniy-VirtualBox:/usr/local/Uspex/EX13$ USPEX -r -o
USPEX -r -o
warning: addpath: -e /usr/local/Uspex/src/FunctionFolder: No such file or directory
warning: addpath: -e /usr/local/Uspex/src/FunctionFolder/sys: No such file or directory
warning: addpath: -e /usr/local/Uspex/src/FunctionFolder/AbinitCode: No such file or directory
warning: addpath: -e /usr/local/Uspex/src/FunctionFolder/symope: No such file or directory
error: 'python_uspex' undefined near line 1 column 11

evgeniy@evgeniy-VirtualBox:/usr/local/Uspex/EX13$ 

Thats warning is wrong, becouse I see mentioned files and directory in Nautilus.
I am also check my shell is bash by defoult, as reccomended in manual.

Please support.

Best Regards
Evgeniy


вторник, 7 июня 2016 г., 23:52:27 UTC+3 пользователь mahdi davari написал:
Reply all
Reply to author
Forward
0 new messages