2011-11-09 4 views
2

오늘 밤 처음으로 Macbook에 Ada와 AWS를 설치했습니다.Ada AWS 설치 문제

설치가 성공적으로 완료된 것처럼 보였지만 AWS가 올바른 디렉토리에 설치되지 않았다는 느낌이 들었습니다.

GNAT는/usr/local/gnat에 있습니다.

AWS의 makefile.conf 말했다

AWS will be installed under $(prefix). Update this variable to point to 
the install directory. By default, it is set to the current GNAT root 
directory to have AWS project files automatically available. 

그래서 나는 대상을 변경하지 않았다. 나는 확실히 AWS가 제대로 설치 만들거나,이 년후 경우를 이동할 수있는 방법

~/projects/ada:gnatmake hello.adb 
gcc -c hello.adb 
hello.adb:1:06: file "aws.ads" not found 
hello.adb:2:06: file "aws.ads" not found 
hello.adb:3:06: file "aws.ads" not found 
hello.adb:4:06: file "aws.ads" not found 
gnatmake: "hello.adb" compilation error 

: 나는 어디서나 AWS 데모 폴더를 제외하고 시스템에서 그래서 hello_world를 컴파일 할 때

는하지만,이 오류가 발생합니다 '티?

답변

4

(잘, 아는 사람들에게 힌트 이상) 단어에있다 대답 "AWS 프로젝트를 가지고 자동으로 파일 사용". GNAT의 맥락에서

는 "프로젝트 파일"을 컴파일하는 방법, 어디에 어떤 도서관 "이"을 찾기 위해 어디 소스 파일을 찾을 수 빌더 ( gnatmake 또는 gprbuild)를 알려줍니다 유형 .gpr의 파일을 의미 프로젝트가 의존합니다.

hello.gpr 생성 :

with "aws"; 
project Hello is 
    for Main use ("hello.adb"); 
end Hello; 

gprbuild -P hello.gpr 

출력 컴파일 후

with AWS; 
with Ada.Text_IO; 
procedure Hello is 
begin 
    Ada.Text_IO.Put_Line ("AWS version is " & AWS.Version); 
end Hello; 

(최소 매우이다)

AWS version is 2.10.0w 

gprbuildgnatmake에 대한 온라인 정보가 있습니다 (gnatmakegprbuild으로 대체되었습니다). (의 하위 디렉토리) ${prefix}/share/doc에 설치된 GNAT 정보는 아마도있다.