關於header file的位置 - Linux

Jake avatar
By Jake
at 2011-08-29T15:48

Table of Contents

各位板友好

小弟是使用Ubuntu 10.04

目前因為要安裝某一個軟體

但必須要事前安裝 Motif library

sudo apt-get install libmotif-dev 安裝完之後

下./configure之後發現找不到Motif的header file

checking Xm/Xm.h usability... no
checking Xm/Xm.h presence... no
checking for Xm/Xm.h... no
configure: error: Failed to locate the Motif header files.
Use --without-x if you want to build the command-line version of Cluster 3.0.
Otherwise, use CPPFLAGS to add the Motif header directory to the path.
For example, if Xm.h is in /usr/X11R6/include/Xm, use
./configure CPPFLAGS=-I/usr/X11R6/include

到/usr/include/Xm 中有看到Xm.h

但是照著他的解法下了
./configure CPPFLAGS=-I/usr/include

仍然會找不到

請問這是出了什麼樣的問題嘛?

謝謝指教

--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★    (○ ?
╦╦└□ " ○□═ □   □>
║║√√ ╦══╦ ∥    |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己

--
Tags: Linux

All Comments

Brianna avatar
By Brianna
at 2011-09-02T01:12
你檢查看看/usr/include/Xm/Xm.h裡面有沒有內容。
Frederic avatar
By Frederic
at 2011-09-02T21:56
有內容~
Queena avatar
By Queena
at 2011-09-07T09:31
configure -h選單內還有其他指定Xm位置的選項嗎?
Edward Lewis avatar
By Edward Lewis
at 2011-09-12T05:58
我在我的solaris機器上,測試起來很正常了。
Cara avatar
By Cara
at 2011-09-12T22:20
直接./configure到make都順利通過了。
會不會是libmotif-dev的Xm.h不合程式需求?
Joe avatar
By Joe
at 2011-09-15T04:36
我試試看直接下載Motif source code手動安裝看看好了

Linux 3.1-rc4 is out.

Edith avatar
By Edith
at 2011-08-29T13:27
Linus Torvalds - 下午1:00 - 公開 Linux 3.1-rc4 is out. Most noticeable thing for most users is likely the lack of warnings about duplicate sysfs files for ...

請問用Virtualbox模擬Ubuntu 11.04如何修改螢幕解析度?

Hardy avatar
By Hardy
at 2011-08-29T13:01
我筆電本身的作業系統是Win 7 安裝VirtualBox 4.1.2 新增一台機器灌了Ubuntu 11.04 (英文介面) 開機之後它的解析度設定在 1024*768 (預設有1024*768, 800*600, 640*480) 但是筆電的螢幕是寬螢幕 解析度是 1366*768 當把Ubu ...

開機錯誤訊息

Una avatar
By Una
at 2011-08-29T12:34
※ 引述《Vindy0530 (渾沌浪人)》之銘言: : 停電幫實驗室關機 : 再開機後 : 會有這樣的情況: : mount: LABEL=/boot duplicate - not mounted 執行blkid應會發現有兩個以上的分割區有相同的label and#34;/bootand#34; 可能因此 ...

如何在英文Ubuntu上輸入中文(non-root)

Lily avatar
By Lily
at 2011-08-29T12:23
想請教各位版上的前輩 andlt;(_ _)andgt; 如何在英文介面的Ubuntu上輸入中文 目前所使用的系統是Ubuntu 10.04 且因為沒有權限的關係 所以也沒辦法灌新酷音等等那些輸入法 Orz 目前找了許多網頁 只發現有go ...

開機錯誤訊息

George avatar
By George
at 2011-08-29T12:21
停電幫實驗室關機 再開機後 會有這樣的情況: mount: LABEL=/boot duplicate - not mounted 再等一會就會出現以下訊息: I could not start the X server (your graphical environment) due t ...