2011-09-04 2 views
3

오빠 (와 호환 언어)를 처음 사용합니다. 일반적으로 Python으로 웹 앱을 개발합니다.opa 파일을 컴파일하는 중 오류가 발생했습니다.

http://doc.opalang.org/index.html#_introducing_opa의 소개 자습서를 따르고 있지만 "hello_chat.opa"를 실행하면 hello_chat.opa 파일이 컴파일되지 않습니다. 다음 오류가 발생합니다.

/usr/bin/ld: cannot find -lgdbm_compat collect2: ld returned 1 exit status File "caml_startup", line 1, characters 0-1: Error: Error during linking make: * [native] Error 2 error during ocaml compilation -- the command was : make --makefile=Makefile -W Makefile -j 7 native -s

데비안 6.0.2입니다. 위에 링크 된 인트로 튜토리얼에서 "2.1.2. Ubuntu Linux, Debian Linux"의 지침에 따라 opa를 설치했습니다.

루아가 설치되어 있지 않습니다. 그러나 liblua5.1-0이 설치됩니다 (관련성이있는 경우).) 오파 OWASP 목록에서 (참고로)

, libgdbm-dev

을 installng보십시오 :

Concerning libgdbm-dev, it's a rather new dependency and we are not sure we want to keep it. At least we will make it an official dependency for future packages.

답변

2

우리가 오파에 대한 새로운 종속성이 보인다 최신의 안정된 빌드에서는 더 이상 필요 없습니다. 어떤 버전을 사용합니까 (opa --version)? http://opalang.org을 확인하고 Build 569

+0

다운로드하여 트릭을 만들었습니다. 감사합니다. – lander2k2

1

나는이 종속성이 생각

+0

이것은 또한 트릭을했습니다. 520 빌드를 사용하고 libgdbm-dev를 설치하면 작동합니다. 그 후 libgdbm-dev를 제거하고 빌드 569를 설치했는데 아름답게 작동했습니다. 감사합니다! – lander2k2