2013-10-17 3 views
3

Ubuntu 13.04를 실행하는 공유 서버 공간에서 Erlang R16B02를 접두어로 설치하려고합니다. 공유 공간이므로 루트 권한이 없습니다. 시스템에 OpenSSL 1.0.1c가 설치되어 있습니다. 나는 또한libssl-dev와 libncurses5-dev를 루트 권한없이 설치하십시오.

... 
checking whether the child waiter thread should be enabled... yes on SMP build, but not on non-SMP build 
checking for kstat_open in -lkstat... (cached) no 
checking for tgetent in -lncurses... no 
checking for tgetent in -lcurses... no 
checking for tgetent in -ltermcap... no 
checking for tgetent in -ltermlib... no 
configure: error: No curses library functions found 
configure: error: /bin/bash '/home/myname/software/otp_src_R16B02/erts/configure' failed for erts 

을 (아마없이 살 수)은 ncurses에 추가 :

./configure --prefix=/home/myname/software --with-ssl=/usr/lib/ssl/ 

시스템 compains을 ncurses를 대해 :

타르의 포장을 벗긴 후 I는 다음과 같이 구성 실행 libssl-dev가 필요합니다. 나는 다음과 같이합니다 (--without-TERMCAP 플래그를 사용) ncurses를하지 않고 설치하려고 노력 : 구성이 성공이 경우

./configure --prefix=/home/myname/software --with-ssl=/usr/lib/ssl/ --without-termcap 
make 

하지만, 만들은 암호화에 실패 : 나는 경우

make[2]: Entering directory `/home/myname/software/otp_src_R16B02/lib/crypto' 
=== Entering application crypto 
make[3]: Entering directory `/home/myname/software/otp_src_R16B02/lib/crypto/src' 
make[3]: Nothing to be done for `opt'. 
make[3]: Leaving directory `/home/myname/software/otp_src_R16B02/lib/crypto/src' 
make[3]: Entering directory `/home/myname/software/otp_src_R16B02/lib/crypto/c_src' 
make -f x86_64-unknown-linux-gnu/Makefile TYPE=opt 
make[4]: Entering directory `/home/myname/software/otp_src_R16B02/lib/crypto/c_src' 
/usr/bin/install -c -d ../priv/obj/x86_64-unknown-linux-gnu 
gcc -c -o ../priv/obj/x86_64-unknown-linux-gnu/crypto.o -Werror=return-type -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -g -O2 -I/home/myname/software/otp_src_R16B02/erts/x86_64-unknown-linux-gnu -fno-tree-copyrename -D_GNU_SOURCE -fPIC -DHAVE_DYNAMIC_CRYPTO_LIB -I/usr/lib/ssl//include -I/home/myname/software/otp_src_R16B02/erts/emulator/beam -I/home/myname/software/otp_src_R16B02/erts/include -I/home/myname/software/otp_src_R16B02/erts/include/x86_64-unknown-linux-gnu -I/home/myname/software/otp_src_R16B02/erts/include/internal -I/home/myname/software/otp_src_R16B02/erts/include/internal/x86_64-unknown-linux-gnu -I/home/myname/software/otp_src_R16B02/erts/emulator/sys/unix crypto.c 
crypto.c:36:33: fatal error: openssl/opensslconf.h: No such file or directory 
compilation terminated. 
make[4]: *** [../priv/obj/x86_64-unknown-linux-gnu/crypto.o] Error 1 
make[4]: Leaving directory `/home/myname/software/otp_src_R16B02/lib/crypto/c_src' 
make[3]: *** [opt] Error 2 
make[3]: Leaving directory `/home/myname/software/otp_src_R16B02/lib/crypto/c_src' 
make[2]: *** [opt] Error 2 
make[2]: Leaving directory `/home/myname/software/otp_src_R16B02/lib/crypto' 
make[1]: *** [opt] Error 2 
make[1]: Leaving directory `/home/myname/software/otp_src_R16B02/lib' 
make: *** [libs] Error 2 

루트 priviliges 있었다, 나는 apt-get을 함께이 문제를 해결할 수 :

sudo apt-get libncurses5-dev 
sudo apt-get libssl-dev 

하지만 apt-get을하지 않고 이들에 대한 소스를 구할 수있는 곳은 방법/모르겠어요. 누군가 제발 도와 줄 수 있니?

+0

우분투에 대한 몇 가지 정보가있다 비 루트 사용자로 패키지를 설치하는 방법에 대한 스택 교환 : http://askubuntu.com/questions/339/how-can-i-install-a-package-without-root-access – kjw0188

+0

감사. 나는 더 나은 접대로 끝냈다. 어쨌든 루트 액세스 없이는 아무것도하지 말아야합니다. – Ampers4nd

답변

0

집에서 ssl 라이브러리를 컴파일하여 코드와 함께 사용할 수 있습니다. 는 SSL과의 ncurses 라이브러리를 다운로드 (또는 apt-get source 사용)이 같은 : 그 후

./configure --prefix=$HOME/opt 
make && make install 

, 당신은이 위치에있는 라이브러리를 얻을 수 R16B02을 구성 할 수 있습니다

./configure --with-ssl=$HOME/opt