2013-10-25 59 views
0

我我的OS X 10.8.5機器下面的步驟上安裝GNAT:gnatbind:找不到:S-stalib.ali

嘗試編譯簡單的Hello World例子中,我得到這個錯誤後:

​​

任何想法爲什麼會發生這種情況?

PS:gnat make -a hello工作,但創造噸文件,不應該要求據我所知。

編輯:按照要求,這裏是gnatls -v

GNATLS GPL 2013 (20130314) 
Copyright (C) 1997-2013, Free Software Foundation, Inc. 

Source Search Path: 
    <Current_Directory> 
    /usr/local/gnat/lib/gcc/x86_64-apple-darwin12.2.0/4.7.4/adainclude/ 


Object Search Path: 
    <Current_Directory> 
    /usr/local/gnat/lib/gcc/x86_64-apple-darwin12.2.0/4.7.4/adalib/ 


Project Search Path: 
    <Current_Directory> 
    /usr/local/gnat/x86_64-apple-darwin12.2.0/lib/gnat 
    /usr/local/gnat/share/gpr 
    /usr/local/gnat/lib/gnat 

輸出這裏是ls -l /usr/local/gnat/lib/gcc/x86_64-apple-darwin12.2.0/4.7.4/adalib/輸出的摘錄:

total 39224 
[email protected] 1 padde admin  4483 17 Apr 2013 Makefile.adalib 
[email protected] 1 padde admin  1450 3 Jun 18:00 a-assert.ali 

... 

[email protected] 1 padde admin  3178 3 Jun 18:01 s-rpc.ali 
[email protected] 1 padde admin  3778 3 Jun 18:01 s-scaval.ali 
[email protected] 1 padde admin  4908 3 Jun 18:01 s-sequio.ali 
[email protected] 1 padde admin 10542 3 Jun 18:01 s-shasto.ali 
[email protected] 1 padde admin  6382 3 Jun 18:01 s-solita.ali 
[email protected] 1 padde admin  8265 3 Jun 18:01 s-stausa.ali 
[email protected] 1 padde admin  4919 3 Jun 18:01 s-stchop.ali 
[email protected] 1 padde admin 14601 3 Jun 18:01 s-stratt.ali 
[email protected] 1 padde admin 11024 3 Jun 18:01 s-ststop.ali 
[email protected] 1 padde admin  5320 3 Jun 18:01 s-stusta.ali 
[email protected] 1 padde admin  9804 3 Jun 18:01 s-taasde.ali 
[email protected] 1 padde admin  4346 3 Jun 18:01 s-tadeca.ali 
[email protected] 1 padde admin  4234 3 Jun 18:01 s-tadert.ali 
[email protected] 1 padde admin 12564 3 Jun 18:01 s-taenca.ali 
[email protected] 1 padde admin  6663 3 Jun 18:01 s-taprob.ali 
[email protected] 1 padde admin 29033 3 Jun 18:01 s-taprop.ali 
[email protected] 1 padde admin 13719 3 Jun 18:01 s-tarest.ali 
[email protected] 1 padde admin  8863 3 Jun 18:01 s-tasdeb.ali 
[email protected] 1 padde admin  747 3 Jun 18:01 s-tasinf.ali 
[email protected] 1 padde admin 13008 3 Jun 18:01 s-tasini.ali 
[email protected] 1 padde admin 15237 3 Jun 18:01 s-taskin.ali 
[email protected] 1 padde admin  1259 3 Jun 18:01 s-tasloc.ali 
[email protected] 1 padde admin  1710 3 Jun 18:01 s-taspri.ali 
[email protected] 1 padde admin 11652 3 Jun 18:01 s-tasque.ali 
[email protected] 1 padde admin 29450 3 Jun 18:01 s-tasren.ali 
[email protected] 1 padde admin  1500 3 Jun 18:01 s-tasres.ali 
[email protected] 1 padde admin 31332 3 Jun 18:01 s-tassta.ali 
[email protected] 1 padde admin 11059 3 Jun 18:01 s-tasuti.ali 
[email protected] 1 padde admin  7120 3 Jun 18:01 s-tataat.ali 
[email protected] 1 padde admin  2942 3 Jun 18:01 s-tpinop.ali 
[email protected] 1 padde admin 11318 3 Jun 18:01 s-tpoben.ali 
[email protected] 1 padde admin 19570 3 Jun 18:01 s-tpobop.ali 
[email protected] 1 padde admin 11075 3 Jun 18:01 s-tposen.ali 
[email protected] 1 padde admin  1421 3 Jun 18:01 s-traces.ali 
[email protected] 1 padde admin  3889 3 Jun 18:01 s-tratas.ali 
[email protected] 1 padde admin 17789 3 Jun 18:01 s-utf_32.ali 
[email protected] 1 padde admin  8312 3 Jun 18:01 s-vaflop.ali 
[email protected] 1 padde admin  997 3 Jun 18:01 s-valboo.ali 
[email protected] 1 padde admin  1239 3 Jun 18:01 s-valcha.ali 
[email protected] 1 padde admin  1309 3 Jun 18:01 s-valdec.ali 
[email protected] 1 padde admin  2921 3 Jun 18:01 s-valenu.ali 
[email protected] 1 padde admin  1733 3 Jun 18:01 s-valint.ali 
[email protected] 1 padde admin  1345 3 Jun 18:01 s-vallld.ali 
[email protected] 1 padde admin  1807 3 Jun 18:01 s-vallli.ali 
[email protected] 1 padde admin  3841 3 Jun 18:01 s-valrea.ali 
[email protected] 1 padde admin  3078 3 Jun 18:01 s-valuns.ali 
[email protected] 1 padde admin  2863 3 Jun 18:01 s-valwch.ali 
[email protected] 1 padde admin  2157 3 Jun 18:01 s-veboop.ali 
[email protected] 1 padde admin  535 3 Jun 18:01 s-vector.ali 
[email protected] 1 padde admin  1153 3 Jun 18:01 s-vercon.ali 
[email protected] 1 padde admin  3305 3 Jun 18:01 s-vmexta.ali 
[email protected] 1 padde admin  2474 3 Jun 18:01 s-wchwts.ali 
[email protected] 1 padde admin  698 3 Jun 18:01 s-widboo.ali 
[email protected] 1 padde admin  939 3 Jun 18:01 s-widcha.ali 
[email protected] 1 padde admin  2526 3 Jun 18:01 s-widenu.ali 
[email protected] 1 padde admin  863 3 Jun 18:01 s-widlli.ali 
[email protected] 1 padde admin  1126 3 Jun 18:01 s-widllu.ali 
[email protected] 1 padde admin  1292 3 Jun 18:01 s-widwch.ali 
[email protected] 1 padde admin  1301 3 Jun 18:01 s-wwdcha.ali 
[email protected] 1 padde admin  5682 3 Jun 18:01 s-wwdenu.ali 
[email protected] 1 padde admin  1957 3 Jun 18:01 s-wwdwch.ali 
[email protected] 1 padde admin  1561 3 Jun 18:01 sequenio.ali 
[email protected] 1 padde admin  1519 3 Jun 18:01 text_io.ali 
[email protected] 1 padde admin  391 3 Jun 18:01 unchconv.ali 
[email protected] 1 padde admin  389 3 Jun 18:01 unchdeal.ali 

有趣的是,所請求的文件s-stalib.ali包含在這個目錄中。

回答

2

如果你說gnatls -v(或gnat list -v),它列出了(除其他事項外)對象的搜索路徑:在這裏,

... 
Object Search Path: 
    <Current_Directory> 
    /opt/gnat-gpl-2013/lib/gcc/x86_64-apple-darwin12.2.0/4.7.4/adalib/ 
... 

是什麼你說什麼?這樣對嗎?如果這些文件在那裏,它們是否可讀?

[後來]

OK,你有9個s-s*.ali文件,以保護[email protected](我不知道什麼是@手段!),而我有19個,保護[email protected]。這看起來好像安裝因某種原因沒有完成。

當我安裝GNAT時,我使用sudosudo ./doinstall。這可能是區別嗎?

自述文件中說doinstall在當前(分配,我想)目錄中離開install.log;這可能會提供一些線索。

如果您決定重建庫,則最好在「已安裝」的adalib/目錄中使用Makefile.adalib

祝你好運!

+0

感謝您的幫助。我在原始答案中包含了輸出。這些文件是可讀的,但我沒有在那裏看到's-stalib.ali'。有沒有可能解決這個問題?我應該將'gnat make -a'生成的'* .ali'文件複製到我的'adalib'文件夾中嗎? –

+0

我做了我的'adalib'文件夾的備份,並將'gnat make -a hello'生成的所有'.ali'文件複製到''adalib'文件夾中,除了'hello.ali'外。雖然這有效,但我不太確定這是否是解決我的問題的正確方案。 –

+0

用'sudo'重新安裝的竅門。我不記得當我第一次安裝gnat時是否使用了sudo,但它現在可用。謝謝! –