Results 1 to 7 of 7

Thread: Arduino installation problem in 11.10

  1. #1
    Join Date
    Mar 2012
    Beans
    15

    [SOLVED]Arduino installation problem in 11.10

    I followed this tutorial for installing arduino: http://www.pluggy.me.uk/arduino-ubuntu/

    I installed Openjdk-6-jre, gcc-avr, avr-libc using synaptic package manager and allowed to install whatever extra it wanted to install.

    Then now when i try to compile a code, i get this error: Cannot run program "/home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/avr-g++": java.io.IOException: error=13, Permission denied

    Then i enabled the "Allow executing file as program" in permissions tab for that avr-g++ file. But now i get an error like this:

    /home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/avr-g++: line 3: /home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/../bin.gcc/avr-g++: Permission denied
    /home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/avr-g++: line 3: exec: /home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/../bin.gcc/avr-g++: cannot execute: Permission denied
    /home/vikram/Desktop/arduino-1.0.1/hardware/tools/avr/bin/avr-g++ returned 126


    I don't know what to do now.. Can any linux expert help me in this issue

    I dont understand why it is so difficult to install even a software in linux
    Last edited by vikram91; June 15th, 2012 at 01:36 PM.

  2. #2
    Join Date
    Nov 2010
    Location
    India
    Beans
    Hidden!

    Re: Arduino installation problem in 11.10

    open terminal and type
    Code:
    sudo -i
    then cd to the directory where you have placed that file . then run it as

    Code:
    ./<filename>
    let us know what you got .
    Dont miss anything even it is small. one small pin is enough to bring down a man.


  3. #3
    Join Date
    Mar 2012
    Beans
    15

    Re: Arduino installation problem in 11.10

    Quote Originally Posted by raja.genupula View Post
    open terminal and type
    Code:
    sudo -i
    then cd to the directory where you have placed that file . then run it as

    Code:
    ./<filename>
    let us know what you got .
    I did as you said. Still i get the same error.

  4. #4
    Join Date
    Aug 2006
    Beans
    Hidden!

    Re: Arduino installation problem in 11.10

    Have you tried upgrading to Arduino IDE version 1.0.1?

    I got Arduino version 1.0.1 to work today in 11.04. I'm spelling it out to help you but also so if I have to do this again on another computer I can get it right, so if I add too many details it's just for my own reference.

    Here's what I did:

    A. Open Synaptic Package Manager, search for "arduino" and install it and all it's dependencies. This was version 0022 for me, I had it installed and was having trouble upgrading it to 1.0.1, but the rest is what upgraded it without too much hassle.

    B. Then I followed the info here:

    http://www.mkyong.com/java/how-to-install-java-jdk-on-ubuntu-linux/

    I got some errors but basically I followed the directions from step 4 to the end (yes, that page does have two step #4s)
    Those steps are:
    4. After installation done, jdk and jre will install at /usr/lib/jvm/java-6-sun-1.6.0.06

    5. Ubuntu help to create a java symbolic link and put in /usr/bin for shortcut access

    4. type java -version, DONE !!
    Post-Installation Setup

    Set JAVA_HOME into environment variable

    Copy following statement and append to /etc/profile or .bashrc file, make system set JAVA_HOME into system environment variable.

    Code:
    export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.06"
    In my case I changed the last part to:
    Code:
    export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.22"
    since my version was java-6-sun-1.6.0.22, not java-6-sun-1.6.0.06

    C. Next I went back to Synaptic, and under the "Settings" menu choose "Repositories", then the "Other Software" tab and added this line:
    Code:
    deb http://ubuntu.mirror.cambrium.nl/ubuntu/ quantal main universe
    then hit "close" and "Reload" on the main Synaptic window.

    D. In Synaptic, search for "arduino" again and install it and all it's dependencies (this time it was just "arduino-core"). This was now version 1.0.1. DO NOT CLICK ON "Mark All Upgrades" because this would only upgrade software in the "Universe" repository, and I'm not sure but I think it would break a whole lot of stuff.

    E. Still in Synaptic, and under the "Settings" menu choose "Repositories"again, then the "Other Software" tab and UNCHECK this line:
    Code:
    deb http://ubuntu.mirror.cambrium.nl/ubuntu/ quantal main universe
    when it's highlighted, the click on "Remove". If you see another line above or below it that says the same thing with "(Source code)" at the end, then UNCHECK and remove it also. Then hit "close" and "Reload" on the main Synaptic window.

    At this point I went to the main Ubuntu "Applications" menu in the corner of my screen, clicked "Electronics", then "Arduino IDE" it took several seconds then showed up as version 1.0.1


    I hope this works for you.

    Rollinns

  5. #5
    Join Date
    Mar 2012
    Beans
    15

    Re: Arduino installation problem in 11.10

    Quote Originally Posted by rollinns View Post
    Have you tried upgrading to Arduino IDE version 1.0.1?

    I got Arduino version 1.0.1 to work today in 11.04. I'm spelling it out to help you but also so if I have to do this again on another computer I can get it right, so if I add too many details it's just for my own reference.

    Here's what I did:

    A. Open Synaptic Package Manager, search for "arduino" and install it and all it's dependencies. This was version 0022 for me, I had it installed and was having trouble upgrading it to 1.0.1, but the rest is what upgraded it without too much hassle.

    B. Then I followed the info here:

    http://www.mkyong.com/java/how-to-install-java-jdk-on-ubuntu-linux/

    I got some errors but basically I followed the directions from step 4 to the end (yes, that page does have two step #4s)
    Those steps are:

    In my case I changed the last part to:
    Code:
    export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.22"
    since my version was java-6-sun-1.6.0.22, not java-6-sun-1.6.0.06

    C. Next I went back to Synaptic, and under the "Settings" menu choose "Repositories", then the "Other Software" tab and added this line:
    Code:
    deb http://ubuntu.mirror.cambrium.nl/ubuntu/ quantal main universe
    then hit "close" and "Reload" on the main Synaptic window.

    D. In Synaptic, search for "arduino" again and install it and all it's dependencies (this time it was just "arduino-core"). This was now version 1.0.1. DO NOT CLICK ON "Mark All Upgrades" because this would only upgrade software in the "Universe" repository, and I'm not sure but I think it would break a whole lot of stuff.

    E. Still in Synaptic, and under the "Settings" menu choose "Repositories"again, then the "Other Software" tab and UNCHECK this line:
    Code:
    deb http://ubuntu.mirror.cambrium.nl/ubuntu/ quantal main universe
    when it's highlighted, the click on "Remove". If you see another line above or below it that says the same thing with "(Source code)" at the end, then UNCHECK and remove it also. Then hit "close" and "Reload" on the main Synaptic window.

    At this point I went to the main Ubuntu "Applications" menu in the corner of my screen, clicked "Electronics", then "Arduino IDE" it took several seconds then showed up as version 1.0.1


    I hope this works for you.

    Rollinns
    Actually my problem was solved long back. My mistake was " i extracted the arduino archive in windows 7 and then copied the extracted folder to ubuntu which caused all the permission errors. When i extracted the archive in Ubuntu, i didnt get any errors.

    And in your method, I doubt if the B) step is required. Because when we install arduino from ubuntu software center, it automatically installs openjdk. I'm not sure if the synaptics installs it or not.

    Actually a simple method of installing arduino 1.0.1 would be:

    1) Install arduino 0022 from ubuntu software center. It installs everything it requires
    2) Download arduino 1.0.1 from the arduino website and extract it inside ubuntu itself.
    3) Just run it

  6. #6
    Join Date
    Aug 2006
    Beans
    Hidden!

    Re: Arduino installation problem in 11.10

    Actually a simple method of installing arduino 1.0.1 would be:

    1) Install arduino 0022 from ubuntu software center. It installs everything it requires
    2) Download arduino 1.0.1 from the arduino website and extract it inside ubuntu itself.
    3) Just run it
    I tried that and got an error which needed the fix in step B to fix. But I do agree that your way would be much more simple.
    http://ubuntuforums.org/images/smilies/eusa_doh.gif

  7. #7
    Join Date
    Mar 2012
    Beans
    15

    Re: Arduino installation problem in 11.10

    Quote Originally Posted by rollinns View Post
    I tried that and got an error which needed the fix in step B to fix. But I do agree that your way would be much more simple.
    http://ubuntuforums.org/images/smilies/eusa_doh.gif
    I did that after a fresh install of ubuntu 11.10 64-bit and it gave me no errors

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •