2017-01-09 5 views
-1

Ich versuche TinyOS 2.1.2 in Ubuntu Virtual Machine zu installieren. Während der Ausführung des folgenden Befehls stehe ich vor dem erwähnten Fehler.TinyOS 2.1.2 Installationsfehler

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

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. 

Ich versuchte autoremove zu tun, zu aktualisieren, nichts funktionierte. Könnten Sie mir bitte hier helfen?

Antwort

0

Wenn Sie sind vertraut mit vagrant Sie meine TinyOS Vagrant Configuration Setup eine virtuelle Maschine oder wenn vertraut mit ansible verwenden könnte nur verwenden, um meine TinyOS Ansible Role, die ich als Vorlage verwendet, um die folgenden Schritte zu beschreiben.

Wenn nicht, folgen Sie den nachstehenden Schritten. Diese sollten auf Arbeit Ubuntu 16.04:

Zuerst aktualisieren Sie Ihre Quelle Listen: sudo apt-get update

NESC Installations

$ 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 Installations

$ 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 

Jetzt sollten Sie bereit sein, geh und hab Spass.