Because TinyOS is used, I didn't install it on my computer. I was going to ask a student for an installation tutorial. I just figured it out. The result hasn't been sent to me yet, so I had to go online to find information on my own and start to install TinyOS on Ubuntu without talking nonsense. By the way, I also paste it to the official website, I just want to make a record for my convenience later. Ubuntu installation TinyOS-2.1.1 full process and Error Handling Methods http://www.linuxidc.com/L
Because TinyOS is used, I didn't install it on my computer. I was going to ask a student for an installation tutorial. I just figured it out. The result hasn't been sent to me yet, so I had to go online to find information on my own and start to install TinyOS on Ubuntu without talking nonsense. By the way, I also paste it to the official website, I just want to make a record for my convenience later.
Ubuntu installation TinyOS-2.1.1 full process and Error Handling Methods http://www.linuxidc.com/Linux/2012-05/61364.htm ###
1. Install JDK and JRE first. This is a common-sense thing.
If there is a problem similar to the one I encountered, that is, the source has a problem. Follow the prompt sudo apt-get update. As long as the network is smooth, there is generally no major problem.
Then test whether the installation is successful, as shown in figure
Next, I want to set the default java interpreter. The result has only one optional result, So I skipped it.
The next step is to configure the java environment variables,
Run the sudo gedit/etc/environment command to add the required environment variables, and then save the environment file as follows:
CLASSPATH =.:/usr/lib/jvm/java-6-openjdk-i386/lib
JAVA_HOME =/usr/lib/jvm/java-6-openjdk-i386
2. Install TinyOS
After the preparation is complete, we should officially start installing TinyOS. First, we need to add the source ourselves for 8%. The specific operation is to edit the source. list file, run the sudo gedit/etc/apt/sources command. list, and then add the TinyOS source to the file. Here we select the source provided by Stanford University, that is, add
Deb http://tinyos.stanford.edu/tinyos/dists/ubuntu hard main
Deb http://hinrg.cs.jhu.edu/tinyosoneiric main
After the file is added and saved, update the source file and run the sudo apt-get update command, as shown below:
If the system does not have a python development environment and a g ++ compilation tool, you need to execute the following two commands:
Sudo apt-get install python-dev
Sudo apt-get install g ++
As follows:
Next is according to the official introduction of the installation steps can be, the official Installation Introduction here http://tinyos.stanford.edu/tinyos-wiki/index.php/Installing_TinyOS_2.1.1#Two-step_install_on_your_host_ OS _with_Debian_packages,