"Binod Pant" <com> wrote in message
news:ecuvrt$2m0$mathworks.com...
Do you have mod_perl ? You haven't mentioned it above, and I think you
*will* need it if you want to make use of the capabilities discussed in the
INSTALL file.
Cheers,
Rob
Has anyone tried installing the MATH::MATLAB module on a Windows XP, Netserver (apache+perl+php+mysql) system? I am having trouble starting the web server when I add the lines in the config file, as instructed by its install directions. You can find this module in the CPAN web site. (http://search.cpan.org/~zman/Math-Matlab-0.07/lib/Math/Matlab.pm) If anyone can try this out and let me know, it will be super! BP...
Has anyone tried installing the MATH::MATLAB module on a Windows XP,
Netserver (apache+perl+php+mysql) system?
I am having trouble starting the web server when I add the lines in the
config file, as instructed by its install directions. You can find this
module in the CPAN web site.
(http://search.cpan.org/~zman/Math-Matlab-0.07/lib/Math/Matlab.pm)
If anyone can try this out and let me know, it will be super!
BP
"Binod Pant" <com> wrote in message
news:ecuvrt$2m0$mathworks.com...
Do you have mod_perl ? You haven't mentioned it above, and I think you
*will* need it if you want to make use of the capabilities discussed in the
INSTALL file.
Cheers,
Rob
Yes, mod_perl is installed.
The problem seems to be thatI am trying this in Windows. I just saw
somewhere on the website that that has failed for Windows. So, I guess I
would have to try it on Unix. Unless, of course, someone has made it work
for Windows.
"Sisyphus" <afraid.org> wrote in message
news:44f3755d$0$22358$optusnet.com.au...
>
> Do you have mod_perl ? You haven't mentioned it above, and I think you
> *will* need it if you want to make use of the capabilities discussed in
> the
> INSTALL file.
>
> Cheers,
> Rob
>
>[/ref]
"Binod Pant" <com> wrote in message
news:ed4vg8$6og$mathworks.com...
Did Math::Matlab build correctly for you ?
According to the 'make test' output (displayed at
http://www.nntp.perl.org/group/perl.cpan.testers/259622 ) the reason
Math::Matlab-0.07 fails is that, on Win32, the matlab executable is not
located in /usr/local/bin.
It shouldn't be too hard to edit the Math::Matlab source so that
Math::Matlab looks for the matlab executable in the correct location.
A portable fix would have Math::Matlab search the directories in $ENV{PATH}
for the matlab executable. (Wouldn't hurt to file a bug report about this at
http://rt.cpan.org/Public/Dist/Display.html?Name=Math-Matlab .)
If Math::Matlab *did* build and test fine for you, then one suspects that
the problem is a mod_perl/apache one - and you should seek help with that on
a list/newsgroup where such matters are on-topic.
Cheers,
Rob
Nope
I tried using CPAN. This is what I got: Still can't get it to work :
H:\>perl -v
This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered
patch, see perl -V for more detail)
Copyright 1987-2001, Larry Wall
H:\>perl -MCPAN -e "install Math::Matlab"
CPAN: Storable loaded ok Going to read \.cpan\Metadata
Database was generated on Thu, 31 Aug 2006 04:32:35 GMT
Running install for module Math::Matlab Running make for
Z/ZM/ZMAN/Math-Matlab-0.07.tar.gz
CPAN: MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for
\.cpan\sources\authors\id\Z\ZM\ZMAN\Math-Matlab-0.07.tar.gz ok Scanning
cache \.cpan\build\. for sizes Subroutine AUTOLOAD redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 84. Subroutine isaFilehandle
redefined at C:/Perl/site/lib/Compress/Zlib.pm line 99. Subroutine
isaFilename redefined at C:/Perl/site/lib/Compress/Zlib.pm line 108.
Subroutine gzopen redefined at C:/Perl/site/lib/Compress/Zlib.pm line 115.
Subroutine PParameters redefined at C:/Perl/site/lib/Compress/Zlib.pm
line 132. Subroutine deflateInit redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 198. Subroutine inflateInit redefined
at C:/Perl/site/lib/Compress/Zlib.pm line 210. Subroutine
Compress::Zlib::deflateStream::deflateParams redefined at
C:/Perl/site/lib/Compress/Zlib +.pm line 220. Subroutine compress redefined
at C:/Perl/site/lib/Compress/Zlib.pm line 249. Subroutine uncompress
redefined at C:/Perl/site/lib/Compress/Zlib.pm line 280. Subroutine memGzip
redefined at C:/Perl/site/lib/Compress/Zlib.pm line 319. Subroutine
_removeGzipHeader redefined at C:/Perl/site/lib/Compress/Zlib.pm line 350.
Subroutine memGunzip redefined at C:/Perl/site/lib/Compress/Zlib.pm line
409. Subroutine Compress::Zlib::constant redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 94. Subroutine
Compress::Zlib::zlib_version redefined at C:/Perl/site/lib/Compress/Zlib.pm
line 94. Subroutine Compress::Zlib::DispStream redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 94. Subroutine
Compress::Zlib::gzopen_ redefined at C:/Perl/site/lib/Compress/Zlib.pm line
94. Subroutine Compress::Zlib::gzdopen_ redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 94. Subroutine
Compress::Zlib::gzFile::gzread redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 94. Subroutine
Compress::Zlib::gzFile::gzreadline redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 9 +4. Subroutine
Compress::Zlib::gzFile::gzwrite redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 94. Subroutine
Compress::Zlib::gzFile::gzflush redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 94. Subroutine
Compress::Zlib::gzFile::gzclose redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 94. Subroutine
Compress::Zlib::gzFile::gzeof redefined at C:/Perl/site/lib/Compress/Zlib.pm
line 94. Subroutine Compress::Zlib::gzFile::gzsetparams redefined at
C:/Perl/site/lib/Compress/Zlib.pm line +94. Subroutine
Compress::Zlib::gzFile::DESTROY redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 94. Subroutine
Compress::Zlib::gzFile::gzerror redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 94. Subroutine
Compress::Zlib::adler32 redefined at C:/Perl/site/lib/Compress/Zlib.pm line
94. Subroutine Compress::Zlib::crc32 redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 94. Subroutine
Compress::Zlib::_deflateInit redefined at C:/Perl/site/lib/Compress/Zlib.pm
line 94. Subroutine Compress::Zlib::_inflateInit redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 94. Subroutine
Compress::Zlib::deflateStream::DispStream redefined at
C:/Perl/site/lib/Compress/Zlib.pm + line 94. Subroutine
Compress::Zlib::deflateStream::deflate redefined at
C:/Perl/site/lib/Compress/Zlib.pm li +ne 94. Subroutine
Compress::Zlib::deflateStream::flush redefined at
C:/Perl/site/lib/Compress/Zlib.pm line + 94. Subroutine
Compress::Zlib::deflateStream::_deflateParams redefined at
C:/Perl/site/lib/Compress/Zli +b.pm line 94. Subroutine
Compress::Zlib::deflateStream::get_Level redefined at
C:/Perl/site/lib/Compress/Zlib.pm +line 94. Subroutine
Compress::Zlib::deflateStream::get_Strategy redefined at
C:/Perl/site/lib/Compress/Zlib. +pm line 94. Subroutine
Compress::Zlib::deflateStream::DESTROY redefined at
C:/Perl/site/lib/Compress/Zlib.pm li +ne 94. Subroutine
Compress::Zlib::deflateStream::dict_adler redefined at
C:/Perl/site/lib/Compress/Zlib.pm + line 94. Subroutine
Compress::Zlib::deflateStream::total_in redefined at
C:/Perl/site/lib/Compress/Zlib.pm l +ine 94. Subroutine
Compress::Zlib::deflateStream::total_out redefined at
C:/Perl/site/lib/Compress/Zlib.pm +line 94. Subroutine
Compress::Zlib::deflateStream::msg redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 9 +4. Subroutine
Compress::Zlib::inflateStream::DispStream redefined at
C:/Perl/site/lib/Compress/Zlib.pm + line 94. Subroutine
Compress::Zlib::inflateStream::inflate redefined at
C:/Perl/site/lib/Compress/Zlib.pm li +ne 94. Subroutine
Compress::Zlib::inflateStream::__unc_inflate redefined at
C:/Perl/site/lib/Compress/Zlib +.pm line 94. Subroutine
Compress::Zlib::inflateStream::inflateSync redefined at
C:/Perl/site/lib/Compress/Zlib.p +m line 94. Subroutine
Compress::Zlib::inflateStream::DESTROY redefined at
C:/Perl/site/lib/Compress/Zlib.pm li +ne 94. Subroutine
Compress::Zlib::inflateStream::dict_adler redefined at
C:/Perl/site/lib/Compress/Zlib.pm + line 94. Subroutine
Compress::Zlib::inflateStream::total_in redefined at
C:/Perl/site/lib/Compress/Zlib.pm l +ine 94. Subroutine
Compress::Zlib::inflateStream::total_out redefined at
C:/Perl/site/lib/Compress/Zlib.pm +line 94. Subroutine
Compress::Zlib::inflateStream::msg redefined at
C:/Perl/site/lib/Compress/Zlib.pm line 9 +4. CPAN: Archive::Tar loaded ok
Math-Matlab-0.07/ Math-Matlab-0.07/Changes Math-Matlab-0.07/INSTALL
Math-Matlab-0.07/lib/ Math-Matlab-0.07/lib/Math/
Math-Matlab-0.07/lib/Math/Matlab/ Math-Matlab-0.07/lib/Math/Matlab/Local.pm
Math-Matlab-0.07/lib/Math/Matlab/Pool.pm
Math-Matlab-0.07/lib/Math/Matlab/Remote.pm
Math-Matlab-0.07/lib/Math/Matlab/Server.pm
Math-Matlab-0.07/lib/Math/Matlab.pm Math-Matlab-0.07/Makefile.PL
Math-Matlab-0.07/MANIFEST Math-Matlab-0.07/META.yml Math-Matlab-0.07/README
Math-Matlab-0.07/server/ Math-Matlab-0.07/server/foo.m
Math-Matlab-0.07/server/test/ Math-Matlab-0.07/server/test/foo.m
Math-Matlab-0.07/server/test/remote/
Math-Matlab-0.07/server/test/remote/foo.m Math-Matlab-0.07/server.config
Math-Matlab-0.07/t/ Math-Matlab-0.07/t/01_local.t
Math-Matlab-0.07/t/02_pool.t Math-Matlab-0.07/t/03_remote_server.t
Math-Matlab-0.07/t/mwd0/ Math-Matlab-0.07/t/mwd0/foo.m
Math-Matlab-0.07/t/mwd1/ Math-Matlab-0.07/t/mwd1/foo.m
Math-Matlab-0.07/t/mwd2/ Math-Matlab-0.07/t/mwd2/foo.m Removing previously
used \.cpan\build\Math-Matlab-0.07\. CPAN.pm: Going to build
Z/ZM/ZMAN/Math-Matlab-0.07.tar.gz
Enter command to execute Matlab [ /usr/local/bin/matlab -nodisplay -nojvm ]
: d:\Applications\MATLA +B\R2006b\bin\matlab.b
at -nojvm -nodisplay -nosplash
Attempting to run Matlab ...
'd:\Applications\MATLAB\R2006b\bin\matlab.bat -nojvm -nodisplay -nosplash'
does not start Matlab, t +ests with local Matla b will be skipped.
Checking if your kit is complete...
Looks good
Writing Makefile for Math-Matlab
Most of the tests for the Server and Remote classes of the the Math::Matlab
package are not run by default.
In order to test them, you will need to set up a server according to the
instructions in the INSTALL file, then edit the 'server.config' file with
the appropriate values and re-run 'make test'. -- OK
Running make test test -- NOT OK
Running make install make
test had returned bad status, won't install without force
"Sisyphus" <afraid.org> wrote in message
news:44f683a6$0$5106$optusnet.com.au...
>
> Did Math::Matlab build correctly for you ?
>
> According to the 'make test' output (displayed at
> http://www.nntp.perl.org/group/perl.cpan.testers/259622 ) the reason
> Math::Matlab-0.07 fails is that, on Win32, the matlab executable is not
> located in /usr/local/bin.
>
> It shouldn't be too hard to edit the Math::Matlab source so that
> Math::Matlab looks for the matlab executable in the correct location.
> A portable fix would have Math::Matlab search the directories in
> $ENV{PATH}
> for the matlab executable. (Wouldn't hurt to file a bug report about this
> at
> http://rt.cpan.org/Public/Dist/Display.html?Name=Math-Matlab .)
>
> If Math::Matlab *did* build and test fine for you, then one suspects that
> the problem is a mod_perl/apache one - and you should seek help with that
> on
> a list/newsgroup where such matters are on-topic.
>
> Cheers,
> Rob
>
>[/ref]
"Binod Pant" <com> wrote in message
..
..
I guess that's the root of the problem.
I assume that you can run matlab by entering on the command line:
d:\Applications\MATLAB\R2006b\bin\matlab.bat -nojvm -nodisplay -nosplash
And yet the Math::Matlab build process is unable to do that. Perhaps the
single backslashes are being interpolated as escapes. Try telling the
Math::Matlab build process to start matlab using:
d:\\Applications\\MATLAB\R2006b\\bin\\matlab.bat -nojvm -nodisplay -nosplash
or
d:/Applications/MATLAB/R2006b/bin/matlab.bat -nojvm -nodisplay -nosplash
Cheers,
Rob
Bookmarks