I have to use TinyOS for my small project, so I installed TinyOS in my Ubuntu 14.04 64-bit. Basically, I followed the instructions from Saeid in his YouTube video, TinyOS Tutorial #1 - How to install TinyOS on Ubuntu, however I got the following problems:
After installing TinyOS, I got the following error message:
Errors were encountered while processing: /var/cache/apt/archives/tinyos-tools_1.4.2-tinyprod1_amd64.deb /var/cache/apt/archives/msp430-binutils-tinyos_2.21.1-20110821_amd64.deb /var/cache/apt/archives/msp430-gcc-tinyos_4.5.3-20110821_amd64.deb /var/cache/apt/archives/msp430-libc-tinyos_20110612-20110821_amd64.deb /var/cache/apt/archives/msp430mcu-tinyos_20110613-20110821_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
In the YouTube video, Saeid said that if there are some errors while installation, in the sources.list file add the following:
deb http://tinyos.stanford.edu/tinyos/dists/ubuntu kramic main
deb http://tinyos.stanford.edu/tinyos/dists/ubuntu lucid main
I did, but it also does not work.
I made tinyos.sh file as the instruction in YouTube. There is tinyos.sh in my tinyos-release-tinyos-2_1_2 folder, but I got the following error whenever I open a new terminal:
bash: /opt/tinyos-release-tinyos-2_1_2/tinyos.sh: No such file or directory
sudo gedit ~/.bashrc, I do
source ~/.bashrcas in instruction, but
source ~/.bashrcnever works with me.
In bashrc file, I add TOSROOT, TOSDIR, CLASSPATH, MAKERULES the same as in the instructions. Then it seems to be not working. When I did
/opt/tinyos-release-tinyos-2_1_2, I got the following error:
bash: cd: /opt/tinyos-release-tinyos-2_1_2: No such file or directory
Because of that, I cannot move to further steps. Also, I could not reinstall tinyos-2.1.2 to reinstall. When I did
sudo apt-get remove tinyos-2.1.2 I got the following errors:
You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: deputy-tinyos : Depends: tinyos-tools but it is not going to be installed msp430-tinyos : Depends: msp430-binutils-tinyos but it is not going to be installed Depends: msp430-gcc-tinyos but it is not going to be installed Depends: msp430-libc-tinyos but it is not going to be installed Depends: msp430mcu-tinyos but it is not going to be installed tinyos-required-avr : Depends: tinyos-tools but it is not going to be installed tinyos-required-msp430 : Depends: tinyos-tools but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).