Installing Stack Moodle 2.8.6

Installing Stack Moodle 2.8.6

by Darren O'Neill -
Number of replies: 9

Hi there,


I am having an issue installing stack. When I run the health check I get the following errors 


FAILEDCAS failed to return any evaluated expressions. Please check your connection with the CAS.CAS returned some data as expected, but there were errors.
FAILEDCAS failed to return any evaluated expressions. Please check your connection with the CAS.
CAS results are being cached in the database.

I looked at some forums and found that I should try run the maxima command on my server to see if I get any errors, which I do. The error I receive is 

/usr/lib/maxima/5.35.1/binary-clisp/lisp.run: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory

So i troubleshooted further and looked to download the clisp package which doesn't seem to be available in the repo for redhat. so I downloaded the rpm and tried to install it using the command 

sudo yum localinstall clisp-2.49-16.20130208hg.fc22.i686.rpm

When I run this I get the following error 

Error: Package: clisp-2.49-16.20130208hg.fc22.i686 (/clisp-2.49-16.20130208hg.fc22.i686)
           Requires: libreadline.so.5
Error: Package: clisp-2.49-16.20130208hg.fc22.i686 (/clisp-2.49-16.20130208hg.fc22.i686)
           Requires: libsigsegv.so.2
Error: Package: clisp-2.49-16.20130208hg.fc22.i686 (/clisp-2.49-16.20130208hg.fc22.i686)
           Requires: libsvm.so.2
Error: Package: clisp-2.49-16.20130208hg.fc22.i686 (/clisp-2.49-16.20130208hg.fc22.i686)
           Requires: libfcgi.so.0
 You could try using --skip-broken to work around the problem
** Found 4 pre-existing rpmdb problem(s), 'yum check' output follows:
maxima-exec-clisp-5.35.1-1.i386 has missing requires of libavcall.so.0
maxima-exec-clisp-5.35.1-1.i386 has missing requires of libcallback.so.0
maxima-exec-clisp-5.35.1-1.i386 has missing requires of libreadline.so.5
maxima-exec-clisp-5.35.1-1.i386 has missing requires of libsigsegv.so

I can supply any logs that be of help in trouble shooting this and any help at all would be greatly appreciated.

Best,
Darren 



Average of ratings: -
In reply to Darren O'Neill

Re: Installing Stack Moodle 2.8.6

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You're probably wrong to assume that many people here know what you are talking about...

I assume it's something to do with this? http://stack.bham.ac.uk/

As it would appear to be a bit specialist it might have been a good idea to give a bit of background. 

Anyway, it's still not clear that this has anything to do with Moodle. Is this related to installing software in or part of Moodle? It doesn't look like it?

In reply to Howard Miller

Re: Installing Stack Moodle 2.8.6

by Darren O'Neill -

Hi Howard,


Thank you for the reply. It's very much appreciated. Apologies, more information would be helpful.(the post was written in a fit of desperation!) 

I am attempting to install the stack question type for Moodle https://moodle.org/plugins/view/qtype_stack.

I have added all the folders into the correct folders in the /moodle directory and have also updated the moodle database via the notifications panel.

So from there, i navigate to the stack options on moodle and there is an option to run a health-check on the plugin to see if everything is configured correctly for it.

This is where things go awry,  I get failures on this health check that lets me know that it is not working

FAILEDCAS failed to return any evaluated expressions. Please check your connection with the CAS.CAS returned some data as expected, but there were errors.
FAILEDCAS failed to return any evaluated expressions. Please check your connection with the CAS.
CAS results are being cached in the database.

The install of stack is reliant on a package that must be installed on the server called maxima. This appears to be the route of the issue as when I try to run it on there server I get the error: /usr/lib/maxima/5.35.1/binary-clisp/lisp.run: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory 

So the issue appears to be caused by Maxima on the server and thus is filtering through to moodle when I run run the health check.

Many thanks again for taking the time to reply.

Best,

Darren

In reply to Darren O'Neill

Re: Installing Stack Moodle 2.8.6

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The only thing I could find was a bug report for Ubuntu against maxima complaining about those library dependency errors. On the face of it, it looks like maxima may be broken on CentOS.

Here's another recent one... http://sourceforge.net/p/maxima/support-requests/38/

If the rpm really is broken, you may be looking at compiling it from source yourself. 

Average of ratings: Useful (1)
In reply to Howard Miller

Re: Installing Stack Moodle 2.8.6

by Darren O'Neill -

Hi Howard,


Thanks, for the reply. I've got a bit further on this thanks to your post. The commands I ran on the server were:

sudo yum install sbcl

sudo ./configure --enable-sbcl

sudo make

sudo make check

sudo make install

I then ran the command maxima and it is running on the server.


So from this i know that maxima is now running on the server. I am however getting new errors on the health check for the plugin on moodle. These errors are:


FAILEDCAS failed to return any evaluated expressions. Please check your connection with the CAS.CAS returned some data as expected, but there were errors.
FAILEDCAS failed to return any evaluated expressions. Please check your connection with the CAS.
CAS results are being cached in the database.

I will investigate these further and update the post if I find the solution.

Best,
Darren 


In reply to Darren O'Neill

Re: Installing Stack Moodle 2.8.6

by Darren O'Neill -

I got this fully solved.

Stack only supports maxima up to 5.36.1, i had installed this from source so I uninstalled it using the command

sudo make uninstall maxima

 I then downloaded the 5.36.0 package from the maxima site and then ran the following commands from within the maxima directory

sudo ./configure --enable-sbcl

sudo make

sudo make check

sudo make install

From there, I then  tested the health check within moodle. I was, however, still getting an error for gnuplot on the health check. To resolve this I went back onto the server.

I uninstalled gnuplot using the command sudo yum remove gnuplot and then reinstalled it using yum install gnuplot

I then went back to moodle and ran the health check and all was working..... wooot! 


Average of ratings: Useful (2)
In reply to Darren O'Neill

Re: Installing Stack Moodle 2.8.6

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Well done for getting this sorted.

I just wanted to note that STACK normally gets discussed in the Mathematics tools forum. If you had posted there, I might have seen it sooner, and been able to help. However, you seemed to solve it quite quickly on your own.

(I am also saying this because in future, Howard might then know to move questions like this to that forum.)

Average of ratings: Useful (2)