Help for Matlab interface in Ubuntu

538 views
Skip to first unread message

Ambit Pany

unread,
Nov 9, 2011, 12:26:00 PM11/9/11
to tango-...@googlegroups.com
I am using the software Algencan. I am very god in MATLAB. but I am using UBuntu OS. we I try to run this  make algencan-matlab. There is some error given below. Please give some Idea how to handle this error.

Tanking you
Ambit   

The error on command window

ambit@ambit:~/algencan-2.3.7$ make algencan-matlab
make -C /home/ambit/algencan-2.3.7/
sources/algencan
make[1]: Entering directory `/home/ambit/algencan-2.3.7/sources/algencan'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ambit/algencan-2.3.7/sources/algencan'
make -C /home/ambit/algencan-2.3.7/sources/interfaces/matlab all install
make[1]: Entering directory `/home/ambit/algencan-2.3.7/sources/interfaces/matlab'
mex -f ./mexopts.sh -I/home/ambit/algencan-2.3.7/sources/algencan matlabwrapper32.f checkderm32.f fparamm32.f /home/ambit/algencan-2.3.7/sources/algencan/algencan.o /home/ambit/algencan-2.3.7/sources/algencan/auglag.o /home/ambit/algencan-2.3.7/sources/algencan/backtrack.o /home/ambit/algencan-2.3.7/sources/algencan/betra.o /home/ambit/algencan-2.3.7/sources/algencan/calc.o /home/ambit/algencan-2.3.7/sources/algencan/cgm.o /home/ambit/algencan-2.3.7/sources/algencan/dogleg.o /home/ambit/algencan-2.3.7/sources/algencan/drand.o /home/ambit/algencan-2.3.7/sources/algencan/extrap.o /home/ambit/algencan-2.3.7/sources/algencan/evalal.o /home/ambit/algencan-2.3.7/sources/algencan/gencan.o /home/ambit/algencan-2.3.7/sources/algencan/happrox.o /home/ambit/algencan-2.3.7/sources/algencan/lss.o /home/ambit/algencan-2.3.7/sources/algencan/moresor.o /home/ambit/algencan-2.3.7/sources/algencan/newtd.o /home/ambit/algencan-2.3.7/sources/algencan/newtonkkt.o /home/ambit/algencan-2.3.7/sources/algencan/scl.o /home/ambit/algencan-2.3.7/sources/algencan/setpoint.o /home/ambit/algencan-2.3.7/sources/algencan/sevalus.o /home/ambit/algencan-2.3.7/sources/algencan/spgls.o /home/ambit/algencan-2.3.7/sources/algencan/tevalus.o /home/ambit/algencan-2.3.7/sources/algencan/tnls.o /home/ambit/algencan-2.3.7/sources/algencan/uevalus.o /home/ambit/algencan-2.3.7/sources/algencan/vevalus.o  -output algencan
make[1]: mex: Command not found
make[1]: *** [algencan] Error 127
make[1]: Leaving directory `/home/ambit/algencan-2.3.7/sources/interfaces/matlab'
make: *** [algencan-matlab] Error 2
ambit@ambit:~/algencan-2.3.7$

Francisco Sobral

unread,
Nov 9, 2011, 12:53:52 PM11/9/11
to tango-...@googlegroups.com
Dear Ambit,

it seems that either you don't have the program called "mex" in your
computer or your PATH variable does not contain the directory where it
is located.

The program "mex" is responsible for creating the Matlab interface.
For example, in my computer it is located at

/usr/local/bin/mex
/usr/local/matlab/bin/mex

Please contact us in case you have further questions.

Best regards,
Francisco Sobral

> --
> You received this message because you are subscribed to the Google Groups
> "TANGO Project - ALGENCAN" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/tango-project/-/D1TT_-cA_hUJ.
> To post to this group, send email to tango-...@googlegroups.com.
> To unsubscribe from this group, send email to
> tango-projec...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/tango-project?hl=en.
>

--
Francisco Sobral

Ambit Pany

unread,
Nov 9, 2011, 1:54:38 PM11/9/11
to tango-...@googlegroups.com
in my omputer  mex is available  on
/usr/local/MATLAB/R2011a/bin$
 

Ambit Pany

unread,
Nov 9, 2011, 3:19:41 PM11/9/11
to tango-...@googlegroups.com
in my computer mex is present in
/usr/local/MATLAB/R2011a/bin

what can I do now

Francisco Sobral

unread,
Nov 10, 2011, 5:47:44 AM11/10/11
to tango-...@googlegroups.com
Dear Ambit,

type

export PATH=$PATH:/usr/local/MATLAB/R2011a/bin

before running Makefile. You will have to repeat this operation every
time that you start a shell session.
Alternatively, you can add the following line to the file ~/.bashrc

export PATH=$PATH:/usr/local/MATLAB/R2011a/bin

and restart the terminal. This process is made only once.

Best regards,
Francisco.

> --
> You received this message because you are subscribed to the Google Groups
> "TANGO Project - ALGENCAN" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/tango-project/-/j2jX4OLer4IJ.

Reply all
Reply to author
Forward
0 new messages