我一直在尝试从bash打开/执行MATLAB(特别是我使用终端)。然而,尽管有许多尝试进行故障排除,但我一直无法做到。
运行" matlab
"命令给我错误:
-bash:matlab:找不到命令
粗略的谷歌搜索建议它可能是我本地垃圾箱的问题,但我的垃圾箱看起来像:
/usr/local/bin:
total used in directory 16 available 208047788
drwxr-xr-x 4 alifarhat wheel 136 Jul 22 11:30 .
drwxr-xr-x 3 alifarhat wheel 102 Jan 22 01:56 ..
lrwxr-xr-x 1 alifarhat wheel 29 Jul 22 11:30 matlab -> /usr/local/matlab6/bin/matlab
lrwxr-xr-x 1 alifarhat wheel 26 Jul 22 11:30 mex -> /usr/local/matlab6/bin/mex
这似乎表明matlab正在与垃圾箱进行交谈。
如果它有帮助,当我进入/ usr / local然后ls时,那里唯一的目录/项目是" bin"。这可能与它有关吗?如果有,我该如何解决?
答案 0 :(得分:1)
好像java.lang.IllegalArgumentException: Control character in cookie value or attribute.
at org.apache.tomcat.util.http.LegacyCookieProcessor.isV0Separator(LegacyCookieProcessor.java:748)
at org.apache.tomcat.util.http.LegacyCookieProcessor.processCookieHeader(LegacyCookieProcessor.java:545)
at org.apache.tomcat.util.http.LegacyCookieProcessor.parseCookieHeader(LegacyCookieProcessor.java:273)
at org.apache.catalina.connector.Request.parseCookies(Request.java:2949)
at org.apache.catalina.connector.Request.getServerCookies(Request.java:2004)
at org.apache.catalina.connector.CoyoteAdapter.parseSessionCookiesId(CoyoteAdapter.java:1205)
at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:916)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:513)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2463)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2452)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
问题。 PATH
中有/usr/local/bin
吗?
尝试
$PATH
你看到了什么?
如果 ~$ echo $PATH
不属于/usr/local/bin
,您可以添加它:
$PATH
然后尝试从shell
运行 ~$ export PATH=/usr/local/bin:$PATH
修改强>
基于these comments,似乎matlab
可执行文件不在matlab
。因此,您可以
将/usr/local/matlab6/bin
添加到路径:
〜$ export PATH = / Applications / MATLAB_R2014a.app / bin:$ PATH
或
/Applications/MATLAB_R2014a.app/bin/
中已损坏的符号链接(您可能需要/usr/local/bin
权限)。有关详细信息,请参阅this thread。答案 1 :(得分:0)
一旦进入正确的目录,就应该执行命令:
./matlab
而不是只输入matlab。