Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

Install Arduino 1.0.x on Mageia 2 or later

Install the requirement packages and add your user in the group needed by arduino IDE GUI

Install the requirement packages

To install the packages via urpmi, we need to use the root system account: $ su - root

Before starting, please ensure you installed all the latest updates with: $ urpmi --auto-update

we need all the requirements packages for arduino and now there are available directly from Mageia repos, and then you install them as minimal as: $ urpmi arduino

Because there are problems with arduino 1.0.0 rpms in mageia repositeries to compile source for arduino boards. There are these problems with delay.h header like this:

 "In file included from /usr/share/arduino/hardware/arduino/cores/arduino/Platform.h:9:0,
 from /usr/share/arduino/hardware/arduino/cores/arduino/CDC.cpp:19:
 /usr/avr/include/util/delay.h: In function 'void _delay_ms(double)':
 /usr/avr/include/util/delay.h:149:42: error: 'fabs' was not declared in  this scope
   __ticks_dc = (uint32_t)(ceil(fabs(__tmp)));"

We need to remove them and install manually the arduino binaries.Remove arduino rpms: $ urpme arduino arduino-core arduino-doc

Leave the root system account: $ exit

Note : You can use also the MCC (Mageia Control Center) GUI tool to install and next to remove the arduino packages.

Add your user in a missing group

You need to add manually your linux user (login account) in the uucp group. If you don't add it, when you will start the arduino GUI, you will have the following error and can not upload your program in your arduino board :

 check_group_uucp(): error testing lock file creation Error details:Permission not allowed check_lock_status: No permission to create lock file.
 please see: How can I use Lock Files with rxtx? in INSTALL 

To add your user in the uucp group, we need to use the root system account: $ su - root

Fix the rights on /var/lock symlink to /run/lock: $ chown :lock /run/lock $ chmod g+w /run/lock

Add the your linux login user in the uucp group: $ usermod -a -G uucp user where user is here your linux login user

Leave the root system account: $ exit

Install manually the arduino IDE GUI binaries

Create the Arduino folder in your HOME directory: $ cd $ mkdir Arduino $ cd Arduino

Download and install the Arduino IDE GUI binaries :

1.0.5

  • If you have a 32 bits Mageia system

$ wget https://arduino.googlecode.com/files/arduino-1.0.5-linux32.tgz $ tar xzvf arduino-1.0.5-linux32.tgz

  • If you have a 64 bits Mageia system

$ wget https://arduino.googlecode.com/files/arduino-1.0.5-linux64.tgz $ tar xzvf arduino-1.0.5-linux64.tgz

1.0.6

  • If you have a 32 bits Mageia system

$ wget --output-document=arduino-1.0.6-linux32.tgz http://arduino.cc/download.php?f=/arduino-1.0.6-linux32.tgz $ tar xzvf arduino-1.0.6-linux32.tgz

  • If you have a 64 bits Mageia system

$ wget --output-document=arduino-1.0.6-linux64.tgz http://arduino.cc/download.php?f=/arduino-1.0.6-linux64.tgz $ tar xzvf arduino-1.0.6-linux64.tgz

Launch the Arduino IDE GUI the first time

Go in the Arduino GUI IDE folder : $ cd arduino-1.0.5

Launch the Arduino IDE : $ ./arduino

Now you can show a new window with the editor in the Arduino IDE GUI and can start to develop.

Select your Arduino board

In the Arduino GUI IDE menu : Tools --> Board --> Select your device

Select the communication port for your Arduino board

In the Arduino GUI IDE menu : Tools --> Serial Port --> /dev/ttyUSB0

Test that the compiler works

In the Arduino GUI IDE menu : File --> Examples --> 01.Basics --> Blink

Now you can show a new window with source code.

Click on the "Verify" icon, at the left, the first icon below the menu.

In the ouput part in this window, you must have the following message : "Done Compiling" and "Binary sketch size: 1,084 bytes (of a 30,720 byte maximum)"