2011-11-06 106 views
0

我正試圖在mac osx lion中安裝ROS完整的桌面環境....它基本上是我的Mac上的一個問題...缺少文件或安裝ROS。 Lion

Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python26/python26/main.log 
To report a bug, see <http://guide.macports.org/#project.tickets> 
[ rosmake ] rosdep install failed: rosdep script failed with stderr 
{{{ 
Error: Target org.macports.destroot returned: shell command failed (see log for details) 
Error: Unable to upgrade port: 1 
Error: Unable to execute port: upgrade python26 failed 

}}} 
Traceback (most recent call last): 
    File "/Library/Frameworks/Python.framework/Versions/2.7/bin/rosinstall", line 5, in <module> 
    pkg_resources.run_script('rosinstall==0.5.22', 'rosinstall') 
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 489, in run_script 
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1214, in run_script 
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rosinstall-0.5.22-py2.7.egg/EGG-INFO/scripts/rosinstall", line 679, in <module> 

    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rosinstall-0.5.22-py2.7.egg/EGG-INFO/scripts/rosinstall", line 670, in rosinstall_main 

    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 511, in check_call 
    raise CalledProcessError(retcode, cmd) 
subprocess.CalledProcessError: Command 'source /Users/rajeshmedampudi/ros/setup.sh && rosmake ros ros_comm --rosdep-install' returned non-zero exit status 1 

請幫助或指導我在正確的道路......我有一個艱難的時間找到任何材料....謝謝.... 。

添加MAC端口製作安裝錯誤太多....

:info:destroot 1 error generated. 
:info:destroot make[2]: *** [MyAppDelegate.o] Error 1 
:info:destroot make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python26/python26/work/Python-2.6.7/Mac/PythonLauncher' 
:info:destroot make[1]: *** [install_PythonLauncher] Error 2 
:info:destroot make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python26/python26/work/Python-2.6.7/Mac' 
:info:destroot make: *** [frameworkinstallapps] Error 2 
:info:destroot make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python26/python26/work/Python-2.6.7' 
:info:destroot shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python26/python26/work/Python-2.6.7" && /usr/bin/make -w frameworkinstall maninstall MAKE="/usr/bin/make CC=/Developer/usr/bin/clang" DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python26/python26/work/destroot " returned error 2 
:error:destroot Target org.macports.destroot returned: shell command failed (see log for details) 
:debug:destroot Backtrace: shell command failed (see log for details) 
    while executing 
"command_exec destroot" 
    (procedure "portdestroot::destroot_main" line 2) 
    invoked from within 
"$procedure $targetname" 
:info:destroot Warning: the following items did not execute (for python26): org.macports.activate org.macports.destroot org.macports.install 
:notice:destroot Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python26/python26/main.log 

回答

0

你MacPorts的安裝失敗升級蟒蛇。

它試圖升級python26,而是從python27

做一些嘗試

sudo port selfupdate 
sudo port install python26 

,並報告

+0

我沒有安裝python按你的說法,它的工作..但我必須明確地使用easy_install-2.6而不是easy_install。我必須完全重新安裝mac端口才能實現此目的......順便說一下...... Mercurial確實需要python27 ... – medampudi

+0

我現在會看到您安裝了哪些python。 'sudo port select python'會顯示你已經安裝的以及哪個是活動的列表。 Mercurial可能依賴於python2.7,但無論你正在調用python2.6。文件「/Users/rajeshmedampudi/ros/setup.sh」是否存在? – gazhay

+0

是的,它確實存在...我們需要一個2.6被調用...因爲所有的文件需要2.6基於...不是2.7 – medampudi