Go Down

Topic: Few troubles starting Arduino software in ALTLinux (Read 863 times) previous topic - next topic


I've got a couple of troubles.
The first one is an error message
"check_lock_status: No permission to create lock file.                                          
please see: How can I use Lock Files with rxtx? in INSTALL"

The other is the Arduino software cannot find header files in my system.
I use ALTLinux distro.
What should I do to fix these problems?


Jul 29, 2009, 04:11 pm Last Edit: Jul 29, 2009, 04:14 pm by madworm Reason: 1
You need to make sure your user has RW permissions for the serial ports and the directory /var/lock.

On openSUSE this directory belongs to the UUCP group, but this may be different on your system.

drwxrwxr-t 6 root uucp 4096 2009-07-27 19:04 /var/lock/

Just add your user to the group that owns /var/lock and it should work. Remember to restart X to make the changes effective.

You must install the avr-gcc cross compiler + tools. I installed these packages:


avr-gcc must be reasonably up-to-date to work with ATMega328 chips. I think it should be > 4.3.1 to be on the safe side. There is some info in the playground.


I have installed packages:
$ rpm -qa|grep avr

But they say that drwxrwxr-t  root uucp /var/lock/ is contrary to the security policies of the distribution. It's better to put lock files in /var/lock/uucp/ or /var/lock/serial/


Jul 29, 2009, 05:00 pm Last Edit: Jul 29, 2009, 05:03 pm by madworm Reason: 1
Still, the RW permissions must be there. So do You have RW permissions to /var/lock/serial ?

Well, I don't know if the lock file location is hard coded into this java lib. You can try replacing the rxtx library supplied with arduino with a package of your distribution. Just delete it and add a symlink to the new one.


drwxrwx---  2 root uucp    4096 Feb 25 21:01 serial
I am in the uucp group.
drwxr-xr-x 10 root root       4096 Jul 21 10:11 lock

There is not an rxtx library in my distribution. Where can I get the sources to try to patch it and compile by myself?


Jul 29, 2009, 05:50 pm Last Edit: Jul 29, 2009, 05:52 pm by madworm Reason: 1
Try this: http://rxtx.qbang.org/wiki/index.php/Main_Page

I've never compiled it myself, maybe it works for you.


Thanks a lot, I'll try to build it right now.


I've compiled rxtx myself, but starting arduino produces the following:
$ ./arduino
java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String; thrown while loading gnu.io.RXTXCommDriver                                              
java.lang.NoClassDefFoundError: Could not initialize class gnu.io.RXTXCommDriver thrown while loading gnu.io.RXTXCommDriver


Sep 06, 2009, 11:24 am Last Edit: Sep 06, 2009, 11:41 am by tytower Reason: 1
This is the usual type of rubbish we linux users regularly have to put up with .I have exactly the same problem .

Becoming Root and adding my user to the uucp group fixed it thank you madworm.

I installed all the libraries on my Mandriva system and buggered if it didn't refuse to compile because it did not have avr-g++ . Ive spent days downloading and trying to get it to run and had to eventually give up and install Windows again just to be able to get my board up and running

Windows have got it won while each of these distributions insists on going its own way . The hardware manufacturers wont touch it and so we are always behind .

Just give up and concentrate on getting into Windows and stopping it writing home to Mother I reckon now.


I've try to run it with another distribution - Ubuntu. Successfully, so I don't need to install M$ Wendoze.

Go Up