Windows上的yacas:无法启用端口3794

时间:2022-04-04 18:12:18

I have read the info in R: trouble making package Ryacas to work on Windows . I installed the yacas executable and can run it directly by double-clicking the yacas.exe icon. However, if I try to get any help, e.g. "??" I get the error message "lynx is not recognized as an internal / external command..." . If I try to run from a cygwin bash session, % ./yacas.exe , the startup message is echoed to the terminal window, a popup window tells me "invalid handle", and yacas exits. And, finally, in R, Ryacas("some_command") fails with the message

我已经阅读了R中的信息:麻烦制作包Ryacas在Windows上工作。我安装了yacas可执行文件,可以通过双击yacas.exe图标直接运行它。但是,如果我尝试获得任何帮助,例如“??”我收到错误消息“lynx未被识别为内部/外部命令......”。如果我尝试从cygwin bash会话运行%。/ yacas.exe,启动消息将回显到终端窗口,弹出窗口会告诉我“无效句柄”,并且yacas退出。最后,在R中,Ryacas(“some_command”)失败了

"[1] "Starting Yacas!"
Error in socketConnection(host = "127.0.0.1", port = 9734, server = FALSE,  : 
  cannot open the connection
In addition: Warning message:
In socketConnection(host = "127.0.0.1", port = 9734, server = FALSE,  :
  127.0.0.1:9734 cannot be opened"

I tracked down some instructions on opening ports in Windows 7, and tried adding both inbound and outbound rules to enable port 9734, using the "Windows Firewall" manager under ControlPanels. So far as I can tell, the new rules were accepted, but R still returns that error message.
Am I setting up the Firewall rules correctly? I've tried specifying connection types "any", "TCP" and "UDP", and in addition creating rules aimed at yacas.exe (rather than port numbers). (Is it possible that the corporate admin rules are overriding my config without reporting such conflicts to me? I know relatively little about the guts of Win7 admin)

我在Windows 7中查看了有关打开端口的一些说明,并尝试使用ControlPanels下的“Windows防火墙”管理器添加入站和出站规则以启用端口9734。据我所知,新规则已被接受,但R仍会返回该错误消息。我是否正确设置了防火墙规则?我已经尝试指定连接类型“any”,“TCP”和“UDP”,另外还创建了针对yacas.exe(而不是端口号)的规则。 (公司管理规则是否有可能覆盖我的配置而不向我报告此类冲突?我对Win7管理员的胆量知之甚少)

To summarize: what else can I try to get the local server/port to work? I don't know if this helps ID the problem, but standard HTML help under R does work, e.g. opens up a web page like http://127.0.0.1:24932/library/base/html/Trig.html

总结一下:我还能尝试让本地服务器/端口工作吗?我不知道这是否有助于解决问题,但R下的标准HTML帮助确实有用,例如打开一个网页,如http://127.0.0.1:24932/library/base/html/Trig.html

One more thing, in R,

还有一件事,在R中,

yacasFile()
[1] "C:\\Program Files\\R\\R-2.15.2\\library\\Ryacas\\yacdir\\yacas.exe"

So at least R is looking in the right place.

所以至少R正在寻找合适的地方。

1 个解决方案

#1


1  

This is being transferred from the comments. See advice about putting Ryacas in a personal library and not in the C:\Program Files tree in the Ryacas Windows installation section of the home page.

这是从评论中转移的。请参阅有关将Ryacas放入个人库而不是主页的Ryacas Windows安装部分的C:\ Program Files树中的建议。

#1


1  

This is being transferred from the comments. See advice about putting Ryacas in a personal library and not in the C:\Program Files tree in the Ryacas Windows installation section of the home page.

这是从评论中转移的。请参阅有关将Ryacas放入个人库而不是主页的Ryacas Windows安装部分的C:\ Program Files树中的建议。