Go Down

Topic: Arduino on Linux (Read 28 times) previous topic - next topic

aproximation

I am trying to get the Arduino board installed on my Fedora Core 5 laptop: no luck yet.
My problem appears to be with the Java GUI

I have followed the guid of an earlier post in this thread, taken form here: http://riereta.net/tiki/tiki-index.php?page=PdInstallationArduino

I was getting a strange error...
check_group_uucp(): error testing lock file                     creation Error details: Permission deniedcheck_lock_status: No permission to create lock file.
So I copied the proper rxtx version serial lib into the work directory ( cp /usr/java/jre1.5.0_07/lib/i386/librxtxSerial.so work/ )
Now I don't get that error.

When I run arduino:
1) I get the file selector dialog but no files are displayed.
2) When I enter a filename a directory within the work directory is created: for example if I try to open Pd_firmware.pde a directory is created work/NullPd_firmware.pde/

Is there a way to upload this firmware to the arduino from the command line?

bbogart

Hi,

So I looked into it and this is the specific error:

Copying dist files...
cp: cannot create regular file `work/lib/.svn/empty-file': Permission denied
cp: cannot create regular file `work/lib/.svn/entries': Permission denied
cp: cannot create regular file `work/lib/.svn/format': Permission denied
cp: cannot create regular file `work/lib/.svn/README.txt': Permission denied

and this is beause the build/linux/dist/lib contains a few read-only files:
-r--r--r-- 1 bbogart bbogart    0 2006-08-27 15:45 empty-file
-r--r--r-- 1 bbogart bbogart 6192 2006-08-27 15:45 entries
-r--r--r-- 1 bbogart bbogart    2 2006-08-27 15:45 format
-r--r--r-- 1 bbogart bbogart  118 2006-08-27 15:45 README.txt

Which seems to be an .svn directory.. does svn creates this itself, or are they checked in? I tried running through again and the errors can be ignored (I did not realize that at the time.) if the compile fails and someone tries to recompile though then they need to override the readonly to delete the work/ directory.

probably best to have all files read-write for the current user.

Thanks for applying the patch to the svn! I'll update the howto accordingly.

How do I debug a java freeze???


Quote
Thanks much for your help with us.  None of the core developers have regular access to a Linux box, so we rely on contributions to improve the process.  If you have any other suggestions or fixes, please let me know.  In particular, I'm curious about the need to chmod the Arduino files from svn.  Who owned them when they were checked out?  Did you check them out with a sudo?


olsen

yo on the second service i got the arduino compiled. with run.sh i get the file open dialog however steering f.e. to  work/dist/examples/digital\ IO/ no files are displayed/can be chosen & selecting this (or others) directory it segfaults.
what kind of file the selector is looking for to keep him goin?


Experimental:  JNI_OnLoad called.
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
Experimental:  JNI_OnLoad called.
./arduino: line 51: 27916 Segmentation fault      java processing.app.Base

ksnieck

I'm working on installing on Arch Linux, which has no avr packages
Just wanted to say that I found this website
http://www.nongnu.org/avr-libc/user-manual/install_tools.html
it seems to have good instructions for compiling gcc binutils and libc for avr.
I'm in the midst of it now, i'll post back if its successful

ksnieck

That works!
I have the Arduino devel evironment running under Arch Linux
If anybody needs help with that lemme know.

Go Up