安裝軟體在make時發生問題 - Linux

By Cara
at 2009-06-08T16:02
at 2009-06-08T16:02
Table of Contents
※ 引述《newfox ()》之銘言:
: 各位高手,抱歉了,我是個毫無背景的新手
: 被老師叫來負責linux....
: 對這完全不了解,也不知道標題下得怎樣,請多見諒
: 我上網抓了個軟體
: 照其步驟安裝並解壓縮後
: 他是這樣寫的
: Build and test the examples from the manual.
: $ cd source/tools/ManualExamples/
我在我的環境實測了一下您欲編譯的 pintool, 可以正常編譯及執行它所提供的
Example, 以下是我的測試步驟,
1. 在 http://www.pintool.org/downloads.html 裡找和我系統符合的package,
由於我的 Linux 是 32-bit, GCC 版本是 4.3.3 所以我選擇了 Linux/IA32/gcc4.0
這一個 link, 檔名為 pin-2.5-24110-gcc.4.0.0-ia32_intel64-linux.tar.gz
註: 若不知道自己的 GCC 版本, 請打 gcc --version 來看
2. 解開後進去編譯
# tar zxvf pin-2.5-24110-gcc.4.0.0-ia32_intel64-linux.tar.gz
# cd pin-2.5-24110-gcc.4.0.0-ia32_intel64-linux
# cd source/tools
# make
3. 第二步驟跑完後, 試試 README 裡提到的 example, 以下節錄該 README 的部份
內容如下:
----------------------------------------------------------------------
To build and run a sample tool on Linux*:
cd source/tools/SimpleExamples
make opcodemix.test
../../../pin -t obj-intel64/opcodemix.so -- /bin/ls
This will instrument and run /bin/ls, the output for this tool is in
opcodemix.out.
----------------------------------------------------------------------
但是我是 ia32, 所以要把上述 obj-intel64 改成 obj-ia32
目前已經在 source/tools 底下了, 所以我們接著以下的步驟:
# cd SimpleExamples
# make opcodemix.test (試過這行其實不太需要)
# ../../pin -t obj-ia32/opcodemix.so -- /bin/ls
4. 檢查執行的結果
# cat opcodemix.out
然而, ManualExample 裡, 我也用同樣的步驟試過 strace.so, 沒有遇到什麼問題,
有可能您下載的 package 不符合你的系統, 請您再重新下載後試試看
--
: 各位高手,抱歉了,我是個毫無背景的新手
: 被老師叫來負責linux....
: 對這完全不了解,也不知道標題下得怎樣,請多見諒
: 我上網抓了個軟體
: 照其步驟安裝並解壓縮後
: 他是這樣寫的
: Build and test the examples from the manual.
: $ cd source/tools/ManualExamples/
我在我的環境實測了一下您欲編譯的 pintool, 可以正常編譯及執行它所提供的
Example, 以下是我的測試步驟,
1. 在 http://www.pintool.org/downloads.html 裡找和我系統符合的package,
由於我的 Linux 是 32-bit, GCC 版本是 4.3.3 所以我選擇了 Linux/IA32/gcc4.0
這一個 link, 檔名為 pin-2.5-24110-gcc.4.0.0-ia32_intel64-linux.tar.gz
註: 若不知道自己的 GCC 版本, 請打 gcc --version 來看
2. 解開後進去編譯
# tar zxvf pin-2.5-24110-gcc.4.0.0-ia32_intel64-linux.tar.gz
# cd pin-2.5-24110-gcc.4.0.0-ia32_intel64-linux
# cd source/tools
# make
3. 第二步驟跑完後, 試試 README 裡提到的 example, 以下節錄該 README 的部份
內容如下:
----------------------------------------------------------------------
To build and run a sample tool on Linux*:
cd source/tools/SimpleExamples
make opcodemix.test
../../../pin -t obj-intel64/opcodemix.so -- /bin/ls
This will instrument and run /bin/ls, the output for this tool is in
opcodemix.out.
----------------------------------------------------------------------
但是我是 ia32, 所以要把上述 obj-intel64 改成 obj-ia32
目前已經在 source/tools 底下了, 所以我們接著以下的步驟:
# cd SimpleExamples
# make opcodemix.test (試過這行其實不太需要)
# ../../pin -t obj-ia32/opcodemix.so -- /bin/ls
4. 檢查執行的結果
# cat opcodemix.out
然而, ManualExample 裡, 我也用同樣的步驟試過 strace.so, 沒有遇到什麼問題,
有可能您下載的 package 不符合你的系統, 請您再重新下載後試試看
--
Tags:
Linux
All Comments

By Olivia
at 2009-06-13T01:26
at 2009-06-13T01:26
Related Posts
Google發佈Mac與Linux版Chrome

By Susan
at 2009-06-08T13:15
at 2009-06-08T13:15
關於~./bashrc 問題

By Charlotte
at 2009-06-08T09:55
at 2009-06-08T09:55
安裝軟體在make時發生問題

By Ethan
at 2009-06-08T01:28
at 2009-06-08T01:28
Ubuntu Studio 9.04 與Ti4200顯卡相衝嗎??

By Harry
at 2009-06-08T00:35
at 2009-06-08T00:35
平行運算IP設定還有隨身硬碟的問題

By Iris
at 2009-06-07T21:55
at 2009-06-07T21:55