Full explanation of TinyOS installation in Ubuntu

Source: Internet
Author: User
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,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.