2017-01-09 11 views
-1

TinyOS 2.1.2를 Ubuntu Virtual Machine에 설치하려고합니다. 다음 명령을 실행하는 동안 언급 된 오류가 발생했습니다. TinyOS 2.1.2 설치 실패

Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Some packages could not be installed. This may mean that you have 
requested an impossible situation or if you are using the unstable 
distribution that some required packages have not yet been created 
or been moved out of Incoming. 
The following information may help to resolve the situation: 

The following packages have unmet dependencies: 
tinyos-tools : Depends: sun-java5-jre but it is not installable or 
         sun-java6-jre but it is not installable or 
         oracle-java6-jre but it is not installable or 
         sun-java7-jre but it is not installable or 
         openjdk-6-jre but it is not installable or 
         openjdk-7-jre but it is not installable 
E: Unable to correct problems, you have held broken packages. 

$sudo apt-get install nesc tinyos-tools msp430-46 avr-tinyos

내가 autoremove을 시도, 갱신, 아무 일 없습니다. 여기 좀 도와주세요.

답변

0

vagrant에 익숙한 사용자는 TinyOS Vagrant Configuration을 사용하여 가상 시스템을 설정하거나 Ansible에 익숙한 경우 아래 단계를 설명하기 위해 템플릿으로 사용한 TinyOS Ansible Role을 사용하십시오.

다음 단계를 따르지 않는 경우. 다음은 우분투 16.04에 작동합니다 : sudo apt-get update

NESC 설치

$ sudo apt-get install automake, autoconf, emacs, gperf, bison, flex, default-jdk 
$ git clone -depth 1 https://github.com/tinyos/nesc.git /usr/local/src/nesc 
$ cd /usr/local/src/nesc 
$ ./Bootstrap 
$ ./configure 
$ make 
$ make install 

TinyOS의 설치 이제

$ sudo apt-get install automake, autoconf, emacs, gperf, bison, flex, graphviz, default-jdk, gcc-msp430 
$ git clone -depth 1 https://github.com/tinyos/tinyos-main.git /usr/local/src/tinyos 
$ cd /usr/local/src/tinyos/tools 
$ ./Bootstrap 
$ ./configure 
$ make 
$ make install 
$ tos-install-jni 
$ sudo cat <<EOT >> /etc/profile.d/tinyos.sh 
export TINYOS_ROOT_DIR="/usr/local/src/tinyos" 
export CLASSPATH=".:${CLASSPATH:+${CLASSPATH}:}${TINYOS_ROOT_DIR}/tools/tinyos/java/tinyos.jar" 
EOT 
$ sudo chmod 644 /etc/profile.d/tinyos.sh 

당신이 준비해야한다 :

먼저 소스 목록을 업데이트 가서 ... 재미있게 보내라.