Re: [R] Ryacas not working properly
On 11/25/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Ryacas starts up yacas with an initialization file R.ys which puts > the server in a mode which outputs XML (which is what Ryacas reads). > It does that by specifying --init /whatever/R.ys on the yacas command line > when it is run. > > You can run yacas without that init file or you can just enter into yacas > this to turn off XML output: > >PrettyPrinter() Yeah, the above works! Thanks, Gabor. Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
Ryacas starts up yacas with an initialization file R.ys which puts the server in a mode which outputs XML (which is what Ryacas reads). It does that by specifying --init /whatever/R.ys on the yacas command line when it is run. You can run yacas without that init file or you can just enter into yacas this to turn off XML output: PrettyPrinter() See the demo demo("Ryacas-PrettyPrinter") So if you are running yacas independently of R then If you wish to run yacas outside of R just issue the command: yacas or maybe yacas --init /dev/null (untested) On 11/25/06, Paul Smith <[EMAIL PROTECTED]> wrote: > On 11/19/06, Marc Schwartz <[EMAIL PROTECTED]> wrote: > > this might be a firewall/SELinux/"On Demand Services" problem, I have, I > > think, nailed it down to two key things on FC6: > > > > 1. It requires the use of the '--enable-server' configure option for > > yacas itself. > > > > 2. There is a directory permissions problem in the Ryacas package, > > restricting a regular user's access to the files located in the 'yacdir' > > subdirectory. > > > > Note that in the instructions below, I also install the GSL, which > > presumably is not required, but I did it anyway after noting some > > warnings during the yacas build process. > > > > One other thing, which is that when downloading the Ryacas package from > > the Google site using Firefox, the file is downloaded as: > > > > Ryacas_0.2 3.tar.gz > > > > Note the missing '-' between the 2 and 3. Be sure to check for this > > when saving the tarball to disk. > > > > > > So here goes: > > > > > > 1. Install the GSL (including the devel RPM) as root: > > > > yum install gsl* > > > > > > > > > > 2. Install yacas from the source tarball using: > > > > ./ configure --enable-server > > make > > > > then as root: > > > > make install > > > > > > > > > > 4. Install the Ryacas package as root: > > > > R CMD INSTALL Ryacas_0.2-3.tar.gz > > > > > > Be sure that you also have the 'XML' package from CRAN installed, which > > is a dependency for Ryacas. > > > > > > > > > > 3. Change the permissions for /usr/local/lib/R/library/Ryacas/yacdir: > > > > Note that the default permission for this directory after installation > > is: > > > > drwxr--r-- 2 root root 4096 Nov 19 15:17 yacdir > > > > > > Thus: > > > > su > > chmod +x /usr/local/lib/R/library/Ryacas/yacdir > > > > > > Now: > > > > drwxr-xr-x 2 root root 4096 Nov 19 15:17 yacdir > > > > > > > > Now in R as a regular user: > > > > > library(Ryacas) > > Loading required package: XML > > > > > yacas("5/8 * 3/4") > > [1] "Starting Yacas!" > > Accepting requests from port 9734 > > expression(15/32) > > > > > yacas("3/7 * 5/9") > > expression(5/21) > > There a side effect that I would like to remove: yacas compiled with > the option '--enable-server' runs like this > > In> x := 2 > > 2 > > In> x > > 2 > > In> > > i.e., with, apparently, xml commands. How can one run yacas normally, > without those pieces of xml? > > Paul > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
On 11/19/06, Marc Schwartz <[EMAIL PROTECTED]> wrote: > this might be a firewall/SELinux/"On Demand Services" problem, I have, I > think, nailed it down to two key things on FC6: > > 1. It requires the use of the '--enable-server' configure option for > yacas itself. > > 2. There is a directory permissions problem in the Ryacas package, > restricting a regular user's access to the files located in the 'yacdir' > subdirectory. > > Note that in the instructions below, I also install the GSL, which > presumably is not required, but I did it anyway after noting some > warnings during the yacas build process. > > One other thing, which is that when downloading the Ryacas package from > the Google site using Firefox, the file is downloaded as: > > Ryacas_0.2 3.tar.gz > > Note the missing '-' between the 2 and 3. Be sure to check for this > when saving the tarball to disk. > > > So here goes: > > > 1. Install the GSL (including the devel RPM) as root: > > yum install gsl* > > > > > 2. Install yacas from the source tarball using: > > ./ configure --enable-server > make > > then as root: > > make install > > > > > 4. Install the Ryacas package as root: > > R CMD INSTALL Ryacas_0.2-3.tar.gz > > > Be sure that you also have the 'XML' package from CRAN installed, which > is a dependency for Ryacas. > > > > > 3. Change the permissions for /usr/local/lib/R/library/Ryacas/yacdir: > > Note that the default permission for this directory after installation > is: > > drwxr--r-- 2 root root 4096 Nov 19 15:17 yacdir > > > Thus: > > su > chmod +x /usr/local/lib/R/library/Ryacas/yacdir > > > Now: > > drwxr-xr-x 2 root root 4096 Nov 19 15:17 yacdir > > > > Now in R as a regular user: > > > library(Ryacas) > Loading required package: XML > > > yacas("5/8 * 3/4") > [1] "Starting Yacas!" > Accepting requests from port 9734 > expression(15/32) > > > yacas("3/7 * 5/9") > expression(5/21) There a side effect that I would like to remove: yacas compiled with the option '--enable-server' runs like this In> x := 2 2 In> x 2 In> i.e., with, apparently, xml commands. How can one run yacas normally, without those pieces of xml? Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
Gabor, >From what I can tell, telnet service is not actually required to run yacas. This is what confused me for some time and what raised the spectre of the concerns that had I for yacas to be dependent on telnet, as opposed to say ssh. On FC6 (and I suspect many other distros), telnet (plus or minus kerberos support) is not enabled by default, given the known security issues. One can, from the: System -> Administration -> Server Settings -> Services menu, select the "On Demand Services" tab and enable telnet there. This way, telnet is not running by default, but only when actually needed. After trying various permutations of settings, suspecting SELinux and/or firewall issues, I came to the conclusion that enabling this is not required. By default, the telnet server listens to port 23, which was another red flag that I had, noting the error messages for port 9734. I noted no problems from iptables (the Linux firewall rules), given that I do not have port 23 open for telnet service. When yacas is running, I see no indication that processes related to telnet are running, which should be the case, given that I have explicitly disabled telnet as root and SELinux enforces those settings based upon mandatory policies. Without digging deeper into the yacas engine, it may very well be that without the --server-enabled option, it does require a telnet server to be running as the means to pass the expressions for evaluation. However, with that option enabled, yacas has its own server and uses port 9734. I also noted no references to 'telnet' in the config.log, created during the build process. However, I could not get yacas working without the server related option, even with telnet enabled, SELinux in Permissive mode and the firewall disabled on my system. This interaction was a great source of confusion, so it would be worthwhile to query the yacas folks to get some clarification relative to the presumptive dependency on telnet, which may end up being OS specific. HTH, Marc On Sun, 2006-11-19 at 19:32 -0500, Gabor Grothendieck wrote: > I don't have a UNIX box but my reading of it is that it is > telling one how to enable telnet on the machine -- not > how to install a server -- and that once telnet is enabled > then the Ryacas package can make use of sockets > whereas without that such use of sockets is disabled. > Is that not right? > > > On 11/19/06, Paul Smith <[EMAIL PROTECTED]> wrote: > > On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > > Thanks, Marc. I have placed a link to your post on the Ryacas home page. > > > Also, Ryacas 0.2-3 is now on Omegahat (as well as google groups). > > > > Apparently, the link > > > > "HowTo - Enable Telnet on Linux" > > > > at Ryacas site is misleading, as it suggests the installation of > > telnet-server and that is not necessary. See the discussion at > > > > http://groups-beta.google.com/group/comp.os.linux.networking/browse_thread/thread/2bb6a4c7a1167285/565dde88d7922659#565dde88d7922659 > > > > Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
I had an offline discussion with the Debian user and he indicated that the yacas invocation string was his problem and not telnet at all so I will remove that HowTo as it is indeed misleading. On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > I don't have a UNIX box but my reading of it is that it is > telling one how to enable telnet on the machine -- not > how to install a server -- and that once telnet is enabled > then the Ryacas package can make use of sockets > whereas without that such use of sockets is disabled. > Is that not right? > > > On 11/19/06, Paul Smith <[EMAIL PROTECTED]> wrote: > > On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > > Thanks, Marc. I have placed a link to your post on the Ryacas home page. > > > Also, Ryacas 0.2-3 is now on Omegahat (as well as google groups). > > > > Apparently, the link > > > > "HowTo - Enable Telnet on Linux" > > > > at Ryacas site is misleading, as it suggests the installation of > > telnet-server and that is not necessary. See the discussion at > > > > http://groups-beta.google.com/group/comp.os.linux.networking/browse_thread/thread/2bb6a4c7a1167285/565dde88d7922659#565dde88d7922659 > > > > Paul > > > > > > > > > > > On 11/19/06, Marc Schwartz <[EMAIL PROTECTED]> wrote: > > > > OK, after digging around for a couple of hours on this, thinking that > > > > this might be a firewall/SELinux/"On Demand Services" problem, I have, I > > > > think, nailed it down to two key things on FC6: > > > > > > > > 1. It requires the use of the '--enable-server' configure option for > > > > yacas itself. > > > > > > > > 2. There is a directory permissions problem in the Ryacas package, > > > > restricting a regular user's access to the files located in the 'yacdir' > > > > subdirectory. > > > > > > > > Note that in the instructions below, I also install the GSL, which > > > > presumably is not required, but I did it anyway after noting some > > > > warnings during the yacas build process. > > > > > > > > One other thing, which is that when downloading the Ryacas package from > > > > the Google site using Firefox, the file is downloaded as: > > > > > > > > Ryacas_0.2 3.tar.gz > > > > > > > > Note the missing '-' between the 2 and 3. Be sure to check for this > > > > when saving the tarball to disk. > > > > > > > > > > > > So here goes: > > > > > > > > > > > > 1. Install the GSL (including the devel RPM) as root: > > > > > > > > yum install gsl* > > > > > > > > > > > > > > > > > > > > 2. Install yacas from the source tarball using: > > > > > > > > ./ configure --enable-server > > > > make > > > > > > > > then as root: > > > > > > > > make install > > > > > > > > > > > > > > > > > > > > 4. Install the Ryacas package as root: > > > > > > > > R CMD INSTALL Ryacas_0.2-3.tar.gz > > > > > > > > > > > > Be sure that you also have the 'XML' package from CRAN installed, which > > > > is a dependency for Ryacas. > > > > > > > > > > > > > > > > > > > > 3. Change the permissions for /usr/local/lib/R/library/Ryacas/yacdir: > > > > > > > > Note that the default permission for this directory after installation > > > > is: > > > > > > > > drwxr--r-- 2 root root 4096 Nov 19 15:17 yacdir > > > > > > > > > > > > Thus: > > > > > > > > su > > > > chmod +x /usr/local/lib/R/library/Ryacas/yacdir > > > > > > > > > > > > Now: > > > > > > > > drwxr-xr-x 2 root root 4096 Nov 19 15:17 yacdir > > > > > > > > > > > > > > > > Now in R as a regular user: > > > > > > > > > library(Ryacas) > > > > Loading required package: XML > > > > > > > > > yacas("5/8 * 3/4") > > > > [1] "Starting Yacas!" > > > > Accepting requests from port 9734 > > > > expression(15/32) > > > > > > > > > yacas("3/7 * 5/9") > > > > expression(5/21) > > > > > > > > > > > > HTH, > > > > > > > > Marc Schwartz > > > > > > > > > > > > > > > > > > __ > > > R-help@stat.math.ethz.ch mailing list > > > https://stat.ethz.ch/mailman/listinfo/r-help > > > PLEASE do read the posting guide > > > http://www.R-project.org/posting-guide.html > > > and provide commented, minimal, self-contained, reproducible code. > > > > > > > __ > > R-help@stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
I don't have a UNIX box but my reading of it is that it is telling one how to enable telnet on the machine -- not how to install a server -- and that once telnet is enabled then the Ryacas package can make use of sockets whereas without that such use of sockets is disabled. Is that not right? On 11/19/06, Paul Smith <[EMAIL PROTECTED]> wrote: > On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > Thanks, Marc. I have placed a link to your post on the Ryacas home page. > > Also, Ryacas 0.2-3 is now on Omegahat (as well as google groups). > > Apparently, the link > > "HowTo - Enable Telnet on Linux" > > at Ryacas site is misleading, as it suggests the installation of > telnet-server and that is not necessary. See the discussion at > > http://groups-beta.google.com/group/comp.os.linux.networking/browse_thread/thread/2bb6a4c7a1167285/565dde88d7922659#565dde88d7922659 > > Paul > > > > > > On 11/19/06, Marc Schwartz <[EMAIL PROTECTED]> wrote: > > > OK, after digging around for a couple of hours on this, thinking that > > > this might be a firewall/SELinux/"On Demand Services" problem, I have, I > > > think, nailed it down to two key things on FC6: > > > > > > 1. It requires the use of the '--enable-server' configure option for > > > yacas itself. > > > > > > 2. There is a directory permissions problem in the Ryacas package, > > > restricting a regular user's access to the files located in the 'yacdir' > > > subdirectory. > > > > > > Note that in the instructions below, I also install the GSL, which > > > presumably is not required, but I did it anyway after noting some > > > warnings during the yacas build process. > > > > > > One other thing, which is that when downloading the Ryacas package from > > > the Google site using Firefox, the file is downloaded as: > > > > > > Ryacas_0.2 3.tar.gz > > > > > > Note the missing '-' between the 2 and 3. Be sure to check for this > > > when saving the tarball to disk. > > > > > > > > > So here goes: > > > > > > > > > 1. Install the GSL (including the devel RPM) as root: > > > > > > yum install gsl* > > > > > > > > > > > > > > > 2. Install yacas from the source tarball using: > > > > > > ./ configure --enable-server > > > make > > > > > > then as root: > > > > > > make install > > > > > > > > > > > > > > > 4. Install the Ryacas package as root: > > > > > > R CMD INSTALL Ryacas_0.2-3.tar.gz > > > > > > > > > Be sure that you also have the 'XML' package from CRAN installed, which > > > is a dependency for Ryacas. > > > > > > > > > > > > > > > 3. Change the permissions for /usr/local/lib/R/library/Ryacas/yacdir: > > > > > > Note that the default permission for this directory after installation > > > is: > > > > > > drwxr--r-- 2 root root 4096 Nov 19 15:17 yacdir > > > > > > > > > Thus: > > > > > > su > > > chmod +x /usr/local/lib/R/library/Ryacas/yacdir > > > > > > > > > Now: > > > > > > drwxr-xr-x 2 root root 4096 Nov 19 15:17 yacdir > > > > > > > > > > > > Now in R as a regular user: > > > > > > > library(Ryacas) > > > Loading required package: XML > > > > > > > yacas("5/8 * 3/4") > > > [1] "Starting Yacas!" > > > Accepting requests from port 9734 > > > expression(15/32) > > > > > > > yacas("3/7 * 5/9") > > > expression(5/21) > > > > > > > > > HTH, > > > > > > Marc Schwartz > > > > > > > > > > > > > __ > > R-help@stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Thanks, Marc. I have placed a link to your post on the Ryacas home page. > Also, Ryacas 0.2-3 is now on Omegahat (as well as google groups). Apparently, the link "HowTo - Enable Telnet on Linux" at Ryacas site is misleading, as it suggests the installation of telnet-server and that is not necessary. See the discussion at http://groups-beta.google.com/group/comp.os.linux.networking/browse_thread/thread/2bb6a4c7a1167285/565dde88d7922659#565dde88d7922659 Paul > On 11/19/06, Marc Schwartz <[EMAIL PROTECTED]> wrote: > > OK, after digging around for a couple of hours on this, thinking that > > this might be a firewall/SELinux/"On Demand Services" problem, I have, I > > think, nailed it down to two key things on FC6: > > > > 1. It requires the use of the '--enable-server' configure option for > > yacas itself. > > > > 2. There is a directory permissions problem in the Ryacas package, > > restricting a regular user's access to the files located in the 'yacdir' > > subdirectory. > > > > Note that in the instructions below, I also install the GSL, which > > presumably is not required, but I did it anyway after noting some > > warnings during the yacas build process. > > > > One other thing, which is that when downloading the Ryacas package from > > the Google site using Firefox, the file is downloaded as: > > > > Ryacas_0.2 3.tar.gz > > > > Note the missing '-' between the 2 and 3. Be sure to check for this > > when saving the tarball to disk. > > > > > > So here goes: > > > > > > 1. Install the GSL (including the devel RPM) as root: > > > > yum install gsl* > > > > > > > > > > 2. Install yacas from the source tarball using: > > > > ./ configure --enable-server > > make > > > > then as root: > > > > make install > > > > > > > > > > 4. Install the Ryacas package as root: > > > > R CMD INSTALL Ryacas_0.2-3.tar.gz > > > > > > Be sure that you also have the 'XML' package from CRAN installed, which > > is a dependency for Ryacas. > > > > > > > > > > 3. Change the permissions for /usr/local/lib/R/library/Ryacas/yacdir: > > > > Note that the default permission for this directory after installation > > is: > > > > drwxr--r-- 2 root root 4096 Nov 19 15:17 yacdir > > > > > > Thus: > > > > su > > chmod +x /usr/local/lib/R/library/Ryacas/yacdir > > > > > > Now: > > > > drwxr-xr-x 2 root root 4096 Nov 19 15:17 yacdir > > > > > > > > Now in R as a regular user: > > > > > library(Ryacas) > > Loading required package: XML > > > > > yacas("5/8 * 3/4") > > [1] "Starting Yacas!" > > Accepting requests from port 9734 > > expression(15/32) > > > > > yacas("3/7 * 5/9") > > expression(5/21) > > > > > > HTH, > > > > Marc Schwartz > > > > > > > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
On 11/19/06, Marc Schwartz <[EMAIL PROTECTED]> wrote: > OK, after digging around for a couple of hours on this, thinking that > this might be a firewall/SELinux/"On Demand Services" problem, I have, I > think, nailed it down to two key things on FC6: > > 1. It requires the use of the '--enable-server' configure option for > yacas itself. > > 2. There is a directory permissions problem in the Ryacas package, > restricting a regular user's access to the files located in the 'yacdir' > subdirectory. > > Note that in the instructions below, I also install the GSL, which > presumably is not required, but I did it anyway after noting some > warnings during the yacas build process. > > One other thing, which is that when downloading the Ryacas package from > the Google site using Firefox, the file is downloaded as: > > Ryacas_0.2 3.tar.gz > > Note the missing '-' between the 2 and 3. Be sure to check for this > when saving the tarball to disk. > > > So here goes: > > > 1. Install the GSL (including the devel RPM) as root: > > yum install gsl* > > > > > 2. Install yacas from the source tarball using: > > ./ configure --enable-server > make > > then as root: > > make install > > > > > 4. Install the Ryacas package as root: > > R CMD INSTALL Ryacas_0.2-3.tar.gz > > > Be sure that you also have the 'XML' package from CRAN installed, which > is a dependency for Ryacas. > > > > > 3. Change the permissions for /usr/local/lib/R/library/Ryacas/yacdir: > > Note that the default permission for this directory after installation > is: > > drwxr--r-- 2 root root 4096 Nov 19 15:17 yacdir > > > Thus: > > su > chmod +x /usr/local/lib/R/library/Ryacas/yacdir > > > Now: > > drwxr-xr-x 2 root root 4096 Nov 19 15:17 yacdir > > > > Now in R as a regular user: > > > library(Ryacas) > Loading required package: XML > > > yacas("5/8 * 3/4") > [1] "Starting Yacas!" > Accepting requests from port 9734 > expression(15/32) > > > yacas("3/7 * 5/9") > expression(5/21) Excellent, Marc, it works! Thanks. Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
Thanks, Marc. I have placed a link to your post on the Ryacas home page. Also, Ryacas 0.2-3 is now on Omegahat (as well as google groups). On 11/19/06, Marc Schwartz <[EMAIL PROTECTED]> wrote: > OK, after digging around for a couple of hours on this, thinking that > this might be a firewall/SELinux/"On Demand Services" problem, I have, I > think, nailed it down to two key things on FC6: > > 1. It requires the use of the '--enable-server' configure option for > yacas itself. > > 2. There is a directory permissions problem in the Ryacas package, > restricting a regular user's access to the files located in the 'yacdir' > subdirectory. > > Note that in the instructions below, I also install the GSL, which > presumably is not required, but I did it anyway after noting some > warnings during the yacas build process. > > One other thing, which is that when downloading the Ryacas package from > the Google site using Firefox, the file is downloaded as: > > Ryacas_0.2 3.tar.gz > > Note the missing '-' between the 2 and 3. Be sure to check for this > when saving the tarball to disk. > > > So here goes: > > > 1. Install the GSL (including the devel RPM) as root: > > yum install gsl* > > > > > 2. Install yacas from the source tarball using: > > ./ configure --enable-server > make > > then as root: > > make install > > > > > 4. Install the Ryacas package as root: > > R CMD INSTALL Ryacas_0.2-3.tar.gz > > > Be sure that you also have the 'XML' package from CRAN installed, which > is a dependency for Ryacas. > > > > > 3. Change the permissions for /usr/local/lib/R/library/Ryacas/yacdir: > > Note that the default permission for this directory after installation > is: > > drwxr--r-- 2 root root 4096 Nov 19 15:17 yacdir > > > Thus: > > su > chmod +x /usr/local/lib/R/library/Ryacas/yacdir > > > Now: > > drwxr-xr-x 2 root root 4096 Nov 19 15:17 yacdir > > > > Now in R as a regular user: > > > library(Ryacas) > Loading required package: XML > > > yacas("5/8 * 3/4") > [1] "Starting Yacas!" > Accepting requests from port 9734 > expression(15/32) > > > yacas("3/7 * 5/9") > expression(5/21) > > > HTH, > > Marc Schwartz > > > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
OK, after digging around for a couple of hours on this, thinking that this might be a firewall/SELinux/"On Demand Services" problem, I have, I think, nailed it down to two key things on FC6: 1. It requires the use of the '--enable-server' configure option for yacas itself. 2. There is a directory permissions problem in the Ryacas package, restricting a regular user's access to the files located in the 'yacdir' subdirectory. Note that in the instructions below, I also install the GSL, which presumably is not required, but I did it anyway after noting some warnings during the yacas build process. One other thing, which is that when downloading the Ryacas package from the Google site using Firefox, the file is downloaded as: Ryacas_0.2 3.tar.gz Note the missing '-' between the 2 and 3. Be sure to check for this when saving the tarball to disk. So here goes: 1. Install the GSL (including the devel RPM) as root: yum install gsl* 2. Install yacas from the source tarball using: ./ configure --enable-server make then as root: make install 4. Install the Ryacas package as root: R CMD INSTALL Ryacas_0.2-3.tar.gz Be sure that you also have the 'XML' package from CRAN installed, which is a dependency for Ryacas. 3. Change the permissions for /usr/local/lib/R/library/Ryacas/yacdir: Note that the default permission for this directory after installation is: drwxr--r-- 2 root root 4096 Nov 19 15:17 yacdir Thus: su chmod +x /usr/local/lib/R/library/Ryacas/yacdir Now: drwxr-xr-x 2 root root 4096 Nov 19 15:17 yacdir Now in R as a regular user: > library(Ryacas) Loading required package: XML > yacas("5/8 * 3/4") [1] "Starting Yacas!" Accepting requests from port 9734 expression(15/32) > yacas("3/7 * 5/9") expression(5/21) HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > > Sorry but there is not much else I can tell you. I don't have a UNIX > > > system > > > myself though I do know that others have used Ryacas on UNIX since the > > > notes > > > on the home page are based, in part, on their feedback of successfully > > > using > > > it on UNIX. > > > > > > I don't know if the responder is correct since one other person who had a > > > similar problem on UNIX with Ryacas found that it was his telnet > > > configuration > > > that was the problem. > > > > > > Make sure you have tried all the possibilities on the home page. > > > > > > You should at the very least be able to run Ryacas using the system method > > > since that does not require telnet in the first place. > > > > > > Also check which version of Ryacas you are using. > > > > Thanks, Gabor. I am using Ryacas_0.2-3.tar.gz. > > > > Do other people here using Fedora Core experience the same problem? > > Can some FC users here run Ryacas well? > > The troubleshooting notes were based on the feedback of a Debian user > of Ryacas. Therefore it would be very useful if someone here running Fedora Core 6 could test whether Ryacas works fine or not on FC6. Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
On 11/19/06, Paul Smith <[EMAIL PROTECTED]> wrote: > On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > Sorry but there is not much else I can tell you. I don't have a UNIX system > > myself though I do know that others have used Ryacas on UNIX since the notes > > on the home page are based, in part, on their feedback of successfully using > > it on UNIX. > > > > I don't know if the responder is correct since one other person who had a > > similar problem on UNIX with Ryacas found that it was his telnet > > configuration > > that was the problem. > > > > Make sure you have tried all the possibilities on the home page. > > > > You should at the very least be able to run Ryacas using the system method > > since that does not require telnet in the first place. > > > > Also check which version of Ryacas you are using. > > Thanks, Gabor. I am using Ryacas_0.2-3.tar.gz. > > Do other people here using Fedora Core experience the same problem? > Can some FC users here run Ryacas well? > > Paul The troubleshooting notes were based on the feedback of a Debian user of Ryacas. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Sorry but there is not much else I can tell you. I don't have a UNIX system > myself though I do know that others have used Ryacas on UNIX since the notes > on the home page are based, in part, on their feedback of successfully using > it on UNIX. > > I don't know if the responder is correct since one other person who had a > similar problem on UNIX with Ryacas found that it was his telnet configuration > that was the problem. > > Make sure you have tried all the possibilities on the home page. > > You should at the very least be able to run Ryacas using the system method > since that does not require telnet in the first place. > > Also check which version of Ryacas you are using. Thanks, Gabor. I am using Ryacas_0.2-3.tar.gz. Do other people here using Fedora Core experience the same problem? Can some FC users here run Ryacas well? Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
Sorry but there is not much else I can tell you. I don't have a UNIX system myself though I do know that others have used Ryacas on UNIX since the notes on the home page are based, in part, on their feedback of successfully using it on UNIX. I don't know if the responder is correct since one other person who had a similar problem on UNIX with Ryacas found that it was his telnet configuration that was the problem. Make sure you have tried all the possibilities on the home page. You should at the very least be able to run Ryacas using the system method since that does not require telnet in the first place. Also check which version of Ryacas you are using. On 11/19/06, Paul Smith <[EMAIL PROTECTED]> wrote: > On 19 Nov 2006 16:11:52 +0100, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > > "Paul Smith" <[EMAIL PROTECTED]> writes: > > > > > On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > > > You might try posting your problem on the comp.os.linux.networking > > > > group since it appears to be a configuration problem with telnet > > > > on your machine. > > > > > > Thanks, Gabor. I am going to do that and I will let you know about the > > > result. > > > > In particular, check whether you're firewalling yourself out. > > System/Administration/Security Level and Firewall -- I suspect that > > you have to add the ryacas port there. ("Suspect" meaning that I'm not > > sure that you really need this even for unprivileged ports on > > localhost, but it could be worth the try.) > > Thanks, Peter. I put there port 9734, but no progress. Meanwhile, I > received this from someone on Fedora mailing list: > > « Original Message > > Date: Sunday, November 19, 2006 01:34:23 PM + > > From: Paul Smith <[EMAIL PROTECTED]> > > To: For users of Fedora <[EMAIL PROTECTED]> > > Subject: Re: Enabling telnet > > > > On 11/19/06, Tim <[EMAIL PROTECTED]> wrote: > >> > What I am trying to accomplish is the following: > >> > > >> > http://marc.10east.com/?l=r-help&m=116389849302592&w=2 > >> > >> Sounds like you don't want a telnet server, then. But that you're > >> trying to use a telnet client to debug some other server, and the > >> problem is with *it*. But I can't really tell what ryacas is about > >> from that message, nor a quick internet search on it. > >> > >> Otherwise, if you had a telnet server installed, and running per the > >> usual configuration, you could do "telnet localhost" in a command > >> line, and you'd be logging into another command line interface, just > >> as if you were logging into a computer through a network. > > > > Maybe the developers of Ryacas on R mailing list can help me further. > > According to the direction suggested by one of them, > > > > http://groups.google.com/group/comp.os.linux.networking/msg/656bbead5 > > 059fc07 > > > > I should change the file > > > > /etc/xinetd.d/telnet > > > > However, there is no such a file, unless I install telnet-server. > > > > you don't want to touch the /etc/xinetd.d/telnet file (if you had one). > that file relates to control of the telnet daemon - which is what the > user in that google groups message was trying to get going. > > you're not interested in the telnet daemon, rather in the ryacas one, > and that's what you should focus on trying to get working. your issue > with not being able to connect to port 9734 is because you haven't > managed to get the ryacas daemon started up correctly. when you do, and > it shows up in a netstat, then all should be well. > > in short, your problem is with setting up ryacas, not "enabling telnet". > > in your context, your telnet client, which works just fine, has nothing > to do with your telnet daemon (which appears to not be enabled, which > is just fine).» > > Paul > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
On 19 Nov 2006 16:11:52 +0100, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > "Paul Smith" <[EMAIL PROTECTED]> writes: > > > On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > > You might try posting your problem on the comp.os.linux.networking > > > group since it appears to be a configuration problem with telnet > > > on your machine. > > > > Thanks, Gabor. I am going to do that and I will let you know about the > > result. > > In particular, check whether you're firewalling yourself out. > System/Administration/Security Level and Firewall -- I suspect that > you have to add the ryacas port there. ("Suspect" meaning that I'm not > sure that you really need this even for unprivileged ports on > localhost, but it could be worth the try.) Thanks, Peter. I put there port 9734, but no progress. Meanwhile, I received this from someone on Fedora mailing list: « Original Message > Date: Sunday, November 19, 2006 01:34:23 PM + > From: Paul Smith <[EMAIL PROTECTED]> > To: For users of Fedora <[EMAIL PROTECTED]> > Subject: Re: Enabling telnet > > On 11/19/06, Tim <[EMAIL PROTECTED]> wrote: >> > What I am trying to accomplish is the following: >> > >> > http://marc.10east.com/?l=r-help&m=116389849302592&w=2 >> >> Sounds like you don't want a telnet server, then. But that you're >> trying to use a telnet client to debug some other server, and the >> problem is with *it*. But I can't really tell what ryacas is about >> from that message, nor a quick internet search on it. >> >> Otherwise, if you had a telnet server installed, and running per the >> usual configuration, you could do "telnet localhost" in a command >> line, and you'd be logging into another command line interface, just >> as if you were logging into a computer through a network. > > Maybe the developers of Ryacas on R mailing list can help me further. > According to the direction suggested by one of them, > > http://groups.google.com/group/comp.os.linux.networking/msg/656bbead5 > 059fc07 > > I should change the file > > /etc/xinetd.d/telnet > > However, there is no such a file, unless I install telnet-server. > you don't want to touch the /etc/xinetd.d/telnet file (if you had one). that file relates to control of the telnet daemon - which is what the user in that google groups message was trying to get going. you're not interested in the telnet daemon, rather in the ryacas one, and that's what you should focus on trying to get working. your issue with not being able to connect to port 9734 is because you haven't managed to get the ryacas daemon started up correctly. when you do, and it shows up in a netstat, then all should be well. in short, your problem is with setting up ryacas, not "enabling telnet". in your context, your telnet client, which works just fine, has nothing to do with your telnet daemon (which appears to not be enabled, which is just fine).» Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
"Paul Smith" <[EMAIL PROTECTED]> writes: > On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > You might try posting your problem on the comp.os.linux.networking > > group since it appears to be a configuration problem with telnet > > on your machine. > > Thanks, Gabor. I am going to do that and I will let you know about the result. In particular, check whether you're firewalling yourself out. System/Administration/Security Level and Firewall -- I suspect that you have to add the ryacas port there. ("Suspect" meaning that I'm not sure that you really need this even for unprivileged ports on localhost, but it could be worth the try.) -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > You might try posting your problem on the comp.os.linux.networking > group since it appears to be a configuration problem with telnet > on your machine. Thanks, Gabor. I am going to do that and I will let you know about the result. Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
You might try posting your problem on the comp.os.linux.networking group since it appears to be a configuration problem with telnet on your machine. If all else fails, you can try using the "system" method of connecting to Ryacas discussed on the Ryacas home page.That is not ideal since it will not give you any memory from one Ryacas call to the next but it will allow you to do command at a time Ryacas processing even without telnet. Note that you mus be using Ryacas 0.2-3 (which is located on google groups -- see links section on home page) and not 0.2-2 for that to work. On 11/19/06, Paul Smith <[EMAIL PROTECTED]> wrote: > On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > Checkout the INSTALLATION - UNIX and TROUBLESHOOTING > > sections of the home page: > > http://code.google.com/p/ryacas/ > > > > > > I have just installed the package Ryacas, but getting the following: > > > > > > > library(Ryacas) > > > Loading required package: XML > > > > yacas("1/2 * 3/4") > > > [1] "Starting Yacas!" > > > Error in socketConnection(host = "127.0.0.1", port = 9734, server = > > > FALSE, : > > >unable to open connection > > > In addition: Warning message: > > > 127.0.0.1:9734 cannot be opened > > > > /usr/lib/R/library/Ryacas/yacdir/R.ys(1) : File not found > > > > > > > > > > I am using Fedora Core 6 (Linux), R 2.4.0 and Yacas 1.0.62. > > > > > > Any ideas? > > Thanks, Gabor. I have followed the instructions given at: > > http://groups.google.com/group/comp.os.linux.networking/msg/656bbead5059fc07 > > as suggested at > > http://code.google.com/p/ryacas/ > > However, I still get the following: > > $ telnet localhost 9734 > Trying 127.0.0.1... > telnet: connect to address 127.0.0.1: Connection refused > telnet: Unable to connect to remote host: Connection refused > $ > > Paul > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
On 11/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Checkout the INSTALLATION - UNIX and TROUBLESHOOTING > sections of the home page: > http://code.google.com/p/ryacas/ > > > > I have just installed the package Ryacas, but getting the following: > > > > > library(Ryacas) > > Loading required package: XML > > > yacas("1/2 * 3/4") > > [1] "Starting Yacas!" > > Error in socketConnection(host = "127.0.0.1", port = 9734, server = FALSE, > > : > >unable to open connection > > In addition: Warning message: > > 127.0.0.1:9734 cannot be opened > > > /usr/lib/R/library/Ryacas/yacdir/R.ys(1) : File not found > > > > > > > I am using Fedora Core 6 (Linux), R 2.4.0 and Yacas 1.0.62. > > > > Any ideas? Thanks, Gabor. I have followed the instructions given at: http://groups.google.com/group/comp.os.linux.networking/msg/656bbead5059fc07 as suggested at http://code.google.com/p/ryacas/ However, I still get the following: $ telnet localhost 9734 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host: Connection refused $ Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Ryacas not working properly
Checkout the INSTALLATION - UNIX and TROUBLESHOOTING sections of the home page: http://code.google.com/p/ryacas/ On 11/18/06, Paul Smith <[EMAIL PROTECTED]> wrote: > Dear All > > I have just installed the package Ryacas, but getting the following: > > > library(Ryacas) > Loading required package: XML > > yacas("1/2 * 3/4") > [1] "Starting Yacas!" > Error in socketConnection(host = "127.0.0.1", port = 9734, server = FALSE, : >unable to open connection > In addition: Warning message: > 127.0.0.1:9734 cannot be opened > > /usr/lib/R/library/Ryacas/yacdir/R.ys(1) : File not found > > > > I am using Fedora Core 6 (Linux), R 2.4.0 and Yacas 1.0.62. > > Any ideas? > > Thanks in advance, > > Paul > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.