2013-04-08 104 views
1

我已经在Mac OSX 10.5.8上成功安装Netbeans 6.0.1,但是当我尝试启动它时,它并没有在系统中记录这些日志条目。日志:Netbeans在MacOSX上无法启动(命令未找到)

Apr 7 19:35:09 henrique-ordines-macbook [0x0-0x9c09c].NetBeans 6.0.1[53785]: /Applications/NetBeans/NetBeans 6.0.1.app/Contents/MacOS/netbeans: line 48: ls: command not found 
Apr 7 19:35:09 henrique-ordines-macbook [0x0-0x9c09c].NetBeans 6.0.1[53785]: /Applications/NetBeans/NetBeans 6.0.1.app/Contents/MacOS/netbeans: line 53: dirname: command not found 
Apr 7 19:35:09 henrique-ordines-macbook [0x0-0x9c09c].NetBeans 6.0.1[53785]: /Applications/NetBeans/NetBeans 6.0.1.app/Contents/MacOS/netbeans: line 57: dirname: command not found 
Apr 7 19:35:09 henrique-ordines-macbook [0x0-0x9c09c].NetBeans 6.0.1[53785]: Cannot read cluster file: /../etc/netbeans.clusters 
Apr 7 19:35:09 henrique-ordines-macbook com.apple.launchd[65] ([0x0-0x9c09c].NetBeans 6.0.1[53785]): Exited with exit code: 1 

我用磁盘工具修复权限,建议on this thread,但我仍然得到同样的错误。

如果我以root用户身份登录,我可以毫无问题地启动它。

我该如何解决这个问题?

回答

1

on this thread所述,“ls command not found”错误发生是因为我的PATH环境变量已被破坏。对我来说,在这种情况下,uhem,无论如何,一旦你修复了这个变量,这部分/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin也可以在PATH变量中,Netbeans再次运行。