I am trying to compile an example code in cooja simulator on contiki-2.7 Operating System. Contiki is an OS for IoT applications. It is built based on the Linux kernel and on C programming language.

Before implementing in hardware the code is tested in cooja simulator. For a research purpose I installed contiki-2.7 in VirtualBox, and I'm trying to execute some codes in cooja simulator, but I can't compile any of the example codes for this simulation.

For compilation of any code the simulator shows me the error:

make*** No rule to make target 'obj_sky/neighbour-attr.o' needed bt 'contiki-sky.a' Stop.  
Process returned error code 2

enter image description here

enter image description here

How can I fix this error? It is very important to me. I am not getting enough resources from Google.


This means that to compile your program you need some additional packages installed on your system. For example: As your code is written in the C programming language, you need to install gcc to compile it. Similarly, You may need gcc-msp430, msp430-libc, gcc-avr, binutils-avr etc packages.

To install these packages run the following apt command:

sudo apt-get install build-essential binutils-msp430 gcc-msp430 msp430-libc binutils-avr gcc-avr gdb-avr avr-libc avrdude openjdk-7-jdk openjdk-7-jre ant libncurses5-dev doxygen git 


  • @S.M.FahadAhmad: Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your own edits in the future... ;-) – Fabby Nov 18 '18 at 19:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.