在mac mini上編譯程式 - MAC

Valerie avatar
By Valerie
at 2013-03-20T08:31

Table of Contents


想請教一下有沒有人曾在mac上使用過「allpaths-lg」這套程式?
這是該網站的連結:http://www.broadinstitute.org/software/allpaths-lg/blog/
它需要由原始碼自行編譯。

我試著在我的mac mini server上執行它,但總會遇到問題,
它提到需要有gcc47以上版本,我用macport把gcc更新成為GNU版的gcc47,
這點沒問題。

但當我執行完configure後,要再執行make時,
就會出現如下的錯誤訊息(這是部分),

/opt/local/include/gcc47/c++/cstring:77:11:
error: '::memchr' has not been declared
/opt/local/include/gcc47/c++/cstring:78:11:
error: '::memcmp' has not been declared
/opt/local/include/gcc47/c++/cstring:79:11:
error: '::memcpy' has not been declared
/opt/local/include/gcc47/c++/cstring:80:11:
error: '::memmove' has not been declared
/opt/local/include/gcc47/c++/cstring:81:11:
error: '::memset' has not been declared
/opt/local/include/gcc47/c++/cstring:82:11:
error: '::strcat' has not been declared
/opt/local/include/gcc47/c++/cstring:83:11:
error: '::strcmp' has not been declared
/opt/local/include/gcc47/c++/cstring:84:11:
error: '::strcoll' has not been declared
/opt/local/include/gcc47/c++/cstring:85:11:
error: '::strcpy' has not been declared
/opt/local/include/gcc47/c++/cstring:86:11:
error: '::strcspn' has not been declared
/opt/local/include/gcc47/c++/cstring:87:11:
error: '::strerror' has not been declared
/opt/local/include/gcc47/c++/cstring:88:11:
error: '::strlen' has not been declared
/opt/local/include/gcc47/c++/cstring:89:11:
error: '::strncat' has not been declared
/opt/local/include/gcc47/c++/cstring:90:11:
error: '::strncmp' has not been declared
/opt/local/include/gcc47/c++/cstring:91:11:
error: '::strncpy' has not been declared
/opt/local/include/gcc47/c++/cstring:92:11:
error: '::strspn' has not been declared
/opt/local/include/gcc47/c++/cstring:93:11:
error: '::strtok' has not been declared
/opt/local/include/gcc47/c++/cstring:94:11:
error: '::strxfrm' has not been declared
/opt/local/include/gcc47/c++/cstring:95:11:
error: '::strchr' has not been declared
/opt/local/include/gcc47/c++/cstring:96:11:
error: '::strpbrk' has not been declared
/opt/local/include/gcc47/c++/cstring:97:11:
error: '::strrchr' has not been declared
/opt/local/include/gcc47/c++/cstring:98:11:
error: '::strstr' has not been declared

除了這部分外,還有一個出現頻率很高的錯誤訊息:
error: 'memcpy' was not declared in this scope

不知道有沒有曾試過在mac使用它?我在網路上找到的相關資訊是提到應該在
檔案開頭加上 #include <string.h> 或 <cstring> ,
這部分是否應該加在Makefile裡?(我不會寫c語言程式 @@)

我有在mac裡藉由parallel desktop安裝fedora 18,
在fedora裡安裝這個程式就沒什麼問題,
還是我只能乖乖認命用parallel desktop來執行這些(這類)程式。

謝謝。

--
Tags: MAC

All Comments

Ida avatar
By Ida
at 2013-03-24T19:48
不是加在Makefile,要加在有使用的檔案開頭

macbook小白副廠電池購買經驗分享

Sarah avatar
By Sarah
at 2013-03-20T01:11
前情提要: 我要幫小白買新的電池 有朋友推薦我電池101這個廠商 他在這邊買了mb副廠電池用了一年目前仍頭好壯壯,健康度100% 板上前面也有人推過,網路上評價搜尋一下都有提及這家廠商 然後我買了更實惠的副廠電池:http://0rz.tw/ej8Y6 要價2050 今天終於拿到,一裝進去發現兩個狀況 ...

請問哪裡還能買PD8一年序號?

Isla avatar
By Isla
at 2013-03-20T01:10
今天要去找淘寶買~結果發現裡面寫只能販售中國大陸地區 還要留地址跟電話,問了賣方也說不賣台灣~ 不知道有沒有人知道還有啥方法能買pd8一年版的序號~ 先謝謝幫忙:) - ...

USB是否會感染病毒的可能

Doris avatar
By Doris
at 2013-03-20T00:41
爬過文後, 想請問各位版友, 如果某台macbook所bootcamp之win7有中毒的可能, 那用USB隨身碟插在此台macbook, 但是此macbook是用OSX系統的情況下存取資料, 隨身碟還會有中毒的可能嗎? 謝謝大家回答了! PS. 反之,若讓別人可能有毒的隨身碟, 插在開啟OSX ...

leopard底下的ichat

Tracy avatar
By Tracy
at 2013-03-19T19:14
最近把小白(macbook)重灌後,ichat出現極奇怪的情形: 可以登入,登入後好友列表也都在,但當呼叫線上的好友, 丟出訊息後卻被退回,然後出現 jabber error的訊息: 「Could not connect to chatXXXXXXXX because the server could not ...

office word 分數裡的上下標

Caitlin avatar
By Caitlin
at 2013-03-19T15:44
小妹做功課時有個難題 在Mac office word 選擇方程式 叫出分數後 發現沒辦法在分子分母內使用上下標 http://ppt.cc/tBeU (上下標的按鈕變成不能點選的灰色) 請問有沒有大大知道該如何解決? 拜託教教我T^T 感謝! - ...