답변:
이 파일을 실행 가능하게하고 ( chmod u+x)로 실행해야합니다 sudo.
apt-get update
# replace libwxgtk2.8-dev with libwxgtk3.0-dev for Ubuntu 16.04
apt-get --fix-missing -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk
mkdir -p /src/erlang
cd /src/erlang
wget http://www.erlang.org/download/otp_src_R15B01.tar.gz
tar -xvzf otp_src_R16B01.tar.gz
chmod -R 777 otp_src_R16B01
cd otp_src_R16B01
./configure
make
make install
chmod 777결코 좋은 생각이 아니며,이 경우에는 완전히 불필요합니다.
소스 코드에서 다음을 수행 할 수 있습니다.
sudo apt-get -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk
wget http://www.erlang.org/download/otp_src_R16B01.tar.gz
tar -xvzf otp_src_R16B01.tar.gz
chmod -R 777 otp_src_R16B01
cd otp_src_R16B01
./configure
make
sudo make install
참고 : 일부 명령에는 루트 권한 이 필요 하므로 사용 sudo하거나 su요청하는 것이 좋습니다. (일부 명령은 이미 sudo접두사로 표시됩니다)
make install루트가 아닌 경우 실패합니다.
찾고있는 패키지가 저장소에 있는지, 소프트웨어 버전이 저장소에 있는지 확인하기 위해 소프트웨어 저장소를 검색 할 수 있어야합니다.
로 터미널을 열 수 있습니다. Ctrl+Alt+t그렇게 한 후 아래 명령을 실행하면됩니다.
:~$ apt-cache search erlang
// if erlang exists in the current repository, you can check its dependencies with:
:~$ apt-cache depends erlang
// if erlang is in the repository and its the version you want to install
// gain super-user privileges
:~$ sudo bash
// and install with apt-get
:~# apt-get -y install erlang
:~# apt-get -y install erlang-doc
:~# exit
:~$
이게 도움이 되길 바란다!