mac os x的CMake 2.8.10安裝失敗

[英]CMake 2.8.10 installation for mac os x fails creating symlinks


I am updating Cmake in my Mac Book pro with OS X Lion 10.7.5. The old version of Cmake is 2.8.8 and the new one is 2.8.10. When I run almost to the end of the installation process, the installer prompts for creating a Symlink to /usr/bin of several tools. After click on continue, the installer throws an exception telling that couldn't create symlinks. Previously of the process, I've moved to trash the old version of Cmake and then using finder I got nothing more files of Cmake on the machine. Any idea how Can I complete the installation succesfully?

我正在更新我的Mac Book pro和OS X Lion 10.7.5。Cmake的老版本是2.8.8,新版本是2.8.10。當我幾乎運行到安裝過程的末尾時,安裝程序會提示您創建幾個工具的/usr/bin的符號鏈接。單擊continue之后,安裝程序拋出一個異常,說明無法創建符號鏈接。在此過程之前,我已經刪除了舊版本的Cmake,然后使用finder,我在機器上沒有更多的Cmake文件。你知道我怎樣才能成功地完成安裝嗎?

3 个解决方案

#1


6  

In my case, attempting to install cmake 2.8.12 on OSX 10.8.5 failed. The cmake-2.8.12.2-Darwin-universal.dmg installer downloaded directly from cmake.org would hang while running the post install scripts. I found and removed all the symlinks described by willyMon, but it still would hang, requiring me to resort to ps + kill to unhang the installer.

在我的例子中,試圖在OSX 10.8.5上安裝cmake 2.8.12失敗。cmake-2.8.12.2-Darwin-universal。dmg安裝程序直接從cmake.org下載,運行后安裝腳本。我找到並刪除了willyMon描述的所有符號鏈接,但它仍然會掛起,需要我使用ps + kill來卸載安裝程序。

For me, installing via brew did the trick:

對我來說,通過brew進行安裝可以達到以下目的:

brew install cmake

It installed 2.8.12.2 in /usr/local/bin without a hitch.

它毫不費力地在/usr/local/bin中安裝了2.8.12.2。

#2


3  

Opening the Applications folder in a terminal

在終端中打開應用程序文件夾

cd /
cd Applications/

then doing:

然后做:

sudo bash
CMake.app/Contents/bin/cmake-gui

Then run from the CMake GUI: "Tools->Install For Command Line Use"

然后從CMake GUI運行:“工具—用於命令行使用的>安裝”

works OK for me.

對我好的工作。

#3


2  

Ok, after looking in deep for this error, I found that I missed some simple detail and this was the key to solve the problem. The Cpack installer of Cmake 2.8.10.1 try to create symbolic links to this files:

好的,在深入研究這個錯誤之后,我發現我遺漏了一些簡單的細節,這是解決問題的關鍵。Cmake 2.8.10.1的Cpack安裝程序試圖創建此文件的符號鏈接:

-cmake-gui -cmakexbuild -cmake -cpack -ctest

-cmake -cmake -cpack -ctest。

So, from a terminal I've removed all the previous Symlinks that the older version created, then I ran the installer again and the installation was done succesfully without any errors or warnings.

因此,我從一個終端刪除了舊版本創建的所有之前的符號鏈接,然后再次運行安裝程序,成功地完成了安裝,沒有任何錯誤或警告。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2012/11/18/72111d2490d76da552c9c0630c85827f.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com