Need Help! Linuxcnc 2.5.2 won't run


Results 1 to 19 of 19

Thread: Linuxcnc 2.5.2 won't run

  1. #1
    Registered
    Join Date
    Oct 2012
    Location
    Rep Dom
    Posts
    26
    Downloads
    0
    Uploads
    0

    Red face Linuxcnc 2.5.2 won't run

    Installed Ubuntu 12.04 than installed all of what I thought was required. After 2 days of upgrading adding. Linuxcnc won't run. I get the intial machine setup screen, the splash screen, but won't launch program.

    The linux debug text file has the following

    Can not find -sec MOT -var MOT -num 1
    Can not find -sec IO -var IO -num 1
    Can not find -sec LINUXCNC -var NML_FILE -num 1
    Can not find -sec EMC -var NML_FILE -num 1
    2611
    PID TTY STAT TIME COMMAND
    Stopping realtime threads
    Unloading hal components


    In terminal mode lists this;
    maura@ubuntu:~$ cd linuxcnc-rtos
    maura@ubuntu:~/linuxcnc-rtos$ . scripts/rip-environment
    maura@ubuntu:~/linuxcnc-rtos$ linuxcnc
    LINUXCNC - 2.5.2
    Machine configuration directory is '/home/maura/linuxcnc-rtos/configs/stepper'
    Machine configuration file is 'stepper_inch.ini'
    Starting LinuxCNC...
    hal_parport: dlopen: /home/maura/linuxcnc-rtos/rtlib/hal_parport.so: cannot open shared object file: No such file or directory
    standard_pinout.hal:5: /home/maura/linuxcnc-rtos/bin/rtapi_app exited without becoming ready
    standard_pinout.hal:5: insmod failed, returned -1
    Shutting down and cleaning up LinuxCNC...
    Cleanup done
    LinuxCNC terminated with an error. You can find more information in the log:
    /home/maura/linuxcnc_debug.txt
    and
    /home/maura/linuxcnc_print.txt
    as well as in the output of the shell command 'dmesg' and in the terminal
    maura@ubuntu:~/linuxcnc-rtos$


    In your explaination PLEASE be gentle. I'm new to linux. http://www.cnczone.com/forums/images/icons/icon11.png

    Similar Threads:


  2. #2
    Member
    Join Date
    Feb 2007
    Location
    usa
    Posts
    711
    Downloads
    2
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    hal_parport: dlopen: /home/maura/linuxcnc-rtos/rtlib/hal_parport.so: cannot open shared object file: No such file or directory

    thats your problem, if you have hal_parport.so maybe you can direct it to the correct location, or add a link to in where it thinks it should be.
    you have a parallel port on your computer right?

    the easiest way is to just install the livecd from the website.



  3. #3
    Registered
    Join Date
    Oct 2012
    Location
    Rep Dom
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    Hi Alan,

    went to website and could not find liveCD that has linuxcnc 12.04 with linuxcnc 2.5.2. I need to have linuxcnc 12.04 installed to run FlatCAM. So if you can help guide me to make the modification that you suggested, I would greatly appreciate it.

    Thanks



  4. #4
    Member samco's Avatar
    Join Date
    Jul 2003
    Posts
    1753
    Downloads
    2
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    About half way down the page - it explains on how to install linuxcnc 2.6 on 12.04 32bit

    LinuxCNC Documentation Wiki: UpdatingTo2.6

    sam



  5. #5
    Registered
    Join Date
    Oct 2012
    Location
    Rep Dom
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    Followed your instructions. The first of code came back with errors. Please see below and advise if possible.

    maura@ubuntu:~$ sudo apt-get install linuxcnc
    [sudo] password for maura:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package linuxcnc is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'linuxcnc' has no installation candidate
    maura@ubuntu:~$ sudo apt-get update
    Hit 301 Moved Permanently precise-security Release.gpg
    Ign LinuxCNC.org base Release.gpg
    Hit 301 Moved Permanently precise-security Release
    Hit Index of / precise Release.gpg
    Hit http://ppa.launchpad.net precise Release.gpg
    Get:1 Index of / precise-updates Release.gpg [198 B]
    Ign LinuxCNC.org base Release
    Hit Index of / precise Release
    Hit http://ppa.launchpad.net precise Release
    Get:2 Index of / precise-updates Release [49.6 kB]
    Hit 301 Moved Permanently precise-security/main Sources
    Hit http://ppa.launchpad.net precise/main Sources
    Ign LinuxCNC.org base/2.6 TranslationIndex
    Hit 301 Moved Permanently precise-security/restricted Sources
    Hit 301 Moved Permanently precise-security/universe Sources
    Hit http://ppa.launchpad.net precise/main i386 Packages
    Ign http://ppa.launchpad.net precise/main TranslationIndex
    Hit 301 Moved Permanently precise-security/multiverse Sources
    Hit 301 Moved Permanently precise-security/main i386 Packages
    Hit 301 Moved Permanently precise-security/restricted i386 Packages
    Hit 301 Moved Permanently precise-security/universe i386 Packages
    Hit 301 Moved Permanently precise-security/multiverse i386 Packages
    Hit 301 Moved Permanently precise-security/main TranslationIndex
    Hit 301 Moved Permanently precise-security/multiverse TranslationIndex
    Hit 301 Moved Permanently precise-security/restricted TranslationIndex
    Hit 301 Moved Permanently precise-security/universe TranslationIndex
    Hit Index of / precise/main Sources
    Hit Index of / precise/restricted Sources
    Hit Index of / precise/universe Sources
    Hit Index of / precise/multiverse Sources
    Hit Index of / precise/main i386 Packages
    Hit Index of / precise/restricted i386 Packages
    Hit Index of / precise/universe i386 Packages
    Hit Index of / precise/multiverse i386 Packages
    Hit Index of / precise/main TranslationIndex
    Hit Index of / precise/multiverse TranslationIndex
    Hit 301 Moved Permanently precise-security/main Translation-en
    Hit Index of / precise/restricted TranslationIndex
    Hit Index of / precise/universe TranslationIndex
    Get:3 Index of / precise-updates/main Sources [455 kB]
    Hit 301 Moved Permanently precise-security/multiverse Translation-en
    Hit 301 Moved Permanently precise-security/restricted Translation-en
    Hit 301 Moved Permanently precise-security/universe Translation-en
    Ign http://ppa.launchpad.net precise/main Translation-en_US
    Err LinuxCNC.org base/2.6 Sources
    404 Not Found
    Ign http://ppa.launchpad.net precise/main Translation-en
    Err LinuxCNC.org base/2.6 i386 Packages
    404 Not Found
    Ign LinuxCNC.org base/2.6 Translation-en_US
    Ign LinuxCNC.org base/2.6 Translation-en
    Get:4 Index of / precise-updates/restricted Sources [8,028 B]
    Get:5 Index of / precise-updates/universe Sources [106 kB]
    Get:6 Index of / precise-updates/multiverse Sources [8,909 B]
    Get:7 Index of / precise-updates/main i386 Packages [790 kB]
    Get:8 Index of / precise-updates/restricted i386 Packages [12.2 kB]
    Get:9 Index of / precise-updates/universe i386 Packages [244 kB]
    Get:10 Index of / precise-updates/multiverse i386 Packages [15.4 kB]
    Hit Index of / precise-updates/main TranslationIndex
    Hit Index of / precise-updates/multiverse TranslationIndex
    Hit Index of / precise-updates/restricted TranslationIndex
    Hit Index of / precise-updates/universe TranslationIndex
    Hit Index of / precise/main Translation-en
    Hit Index of / precise/multiverse Translation-en
    Hit Index of / precise/restricted Translation-en
    Hit Index of / precise/universe Translation-en
    Hit Index of / precise-updates/main Translation-en
    Hit Index of / precise-updates/multiverse Translation-en
    Hit Index of / precise-updates/restricted Translation-en
    Hit Index of / precise-updates/universe Translation-en
    Fetched 1,690 kB in 51s (32.8 kB/s)
    W: Failed to fetch http://linuxcnc.org/precise/dists/ba...source/Sources 404 Not Found

    W: Failed to fetch http://linuxcnc.org/precise/dists/ba...-i386/Packages 404 Not Found

    E: Some index files failed to download. They have been ignored, or old ones used instead.
    maura@ubuntu:~$

    Second entry came back with the following;

    sudo apt-get install linux-image-3.4.55-rtai-2 rtai-modules-3.4.55-rtai-2
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package linux-image-3.4.55-rtai-2
    E: Couldn't find any package by regex 'linux-image-3.4.55-rtai-2'
    E: Unable to locate package rtai-modules-3.4.55-rtai-2
    E: Couldn't find any package by regex 'rtai-modules-3.4.55-rtai-2'
    maura@ubuntu:~$


    Please advice

    Thanks
    Cpeter



  6. #6
    Community Moderator wendtmk's Avatar
    Join Date
    Dec 2005
    Location
    USA
    Posts
    591
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    Did you update your repositories correctly so that it knows the location of the linuxCNC packages? This error shows there might be a typo or something in your repo:

    Err LinuxCNC.org base/2.6 Sources
    404 Not Found

    Make sure your repository has:

    deb LinuxCNC.org precise base 2.6

    for 12.04.

    Mark



  7. #7
    Registered
    Join Date
    Oct 2012
    Location
    Rep Dom
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    hi wendtmk,

    thanks alot for the help. It was what you said. I just needed to learn how to use the software manger. After running the app. I ran into an install issue. Please review and advise please.

    Get:2 LinuxCNC.org precise/base rtai-modules-3.4.55-rtai-2 i386 3.9-shabby-memleak-2013.12.13-1 [326 kB]
    Fetched 37.0 MB in 15min 30s (39.8 kB/s)
    Preconfiguring packages ...
    Selecting previously unselected package linux-image-3.4.55-rtai-2.
    (Reading database ... 223152 files and directories currently installed.)
    Unpacking linux-image-3.4.55-rtai-2 (from .../linux-image-3.4.55-rtai-2_3_i386.deb) ...
    Done.
    Selecting previously unselected package rtai-modules-3.4.55-rtai-2.
    Unpacking rtai-modules-3.4.55-rtai-2 (from .../rtai-modules-3.4.55-rtai-2_3.9-shabby-memleak-2013.12.13-1_i386.deb) ...
    dpkg: error processing /var/cache/apt/archives/rtai-modules-3.4.55-rtai-2_3.9-shabby-memleak-2013.12.13-1_i386.deb (--unpack):
    trying to overwrite '/etc/udev/rules.d/99-rtai.rules', which is also in package rtai-modules-2.6.32-122-rtai 3.8.1-linuxcnc1
    Errors were encountered while processing:
    /var/cache/apt/archives/rtai-modules-3.4.55-rtai-2_3.9-shabby-memleak-2013.12.13-1_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)



  8. #8
    Community Moderator wendtmk's Avatar
    Join Date
    Dec 2005
    Location
    USA
    Posts
    591
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    You might want to run "sudo apt-get clean" from the command line. That error you are running into sounds a bit like some issues with the residual packages from the previous tries at the installation.

    After that operation is complete, try again to download the linuxCNC packages.

    Mark



  9. #9
    Registered
    Join Date
    Oct 2012
    Location
    Rep Dom
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    Hi wendtmk,

    Tried "sudo apt-get clean" from command line and it ran for only 1 or 2 seconds. Don't think it did anything, but ran install again and got this error;

    Errors were encountered while processing:
    /var/cache/apt/archives/rtai-modules-3.4.55-rtai-2_3.9-shabby-memleak-2013.12.13-1_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    I have no idea what this means or what to do. If you can please advise.

    Thanks



  10. #10
    Registered
    Join Date
    Oct 2012
    Location
    Rep Dom
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    After another install attempt, I dicided to try and run program; got this message:

    maura@ubuntu:~/linuxcnc-rtos$ linuxcnc
    LINUXCNC - 2.6.0-pre1
    Machine configuration directory is '/home/maura/linuxcnc/configs/sim.axis'
    Machine configuration file is 'axis.ini'
    Starting LinuxCNC...
    RTAPI requires the real-time kernel 2.6.32-122-rtai to run. Before running
    this realtime application, reboot and choose this kernel at the boot menu.
    Realtime system did not load
    Shutting down and cleaning up LinuxCNC...
    RTAPI: ERROR: could not open shared memory (errno=2)
    /usr/bin/linuxcnc: line 498: 4594 Segmentation fault (core dumped) $HALCMD stop
    RTAPI: ERROR: could not open shared memory (errno=2)
    /usr/bin/linuxcnc: line 498: 4600 Segmentation fault (core dumped) $HALCMD unload all
    RTAPI: ERROR: could not open shared memory (errno=2)
    RTAPI: ERROR: could not open shared memory (errno=2)
    RTAPI: ERROR: could not open shared memory (errno=2)
    RTAPI: ERROR: could not open shared memory (errno=2)
    RTAPI: ERROR: could not open shared memory (errno=2)
    RTAPI: ERROR: could not open shared memory (errno=2)
    RTAPI: ERROR: could not open shared memory (errno=2)
    RTAPI: ERROR: could not open shared memory (errno=2)
    RTAPI: ERROR: could not open shared memory (errno=2)
    RTAPI: ERROR: could not open shared memory (errno=2)
    RTAPI requires the real-time kernel 2.6.32-122-rtai to run. Before running
    this realtime application, reboot and choose this kernel at the boot menu.
    Cleanup done
    LinuxCNC terminated with an error. You can find more information in the log:
    /home/maura/linuxcnc_debug.txt
    and
    /home/maura/linuxcnc_print.txt
    as well as in the output of the shell command 'dmesg' and in the terminal
    maura@ubuntu:~/linuxcnc-rtos$


    thanks again



  11. #11
    Community Moderator wendtmk's Avatar
    Join Date
    Dec 2005
    Location
    USA
    Posts
    591
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    Okay, try this then:

    sudo apt-get remove -pruge rtai-modules-3.4.55-rtai-2_3.9-shabby-memleak

    Then you'll need to reinstall linuxCNC.

    Your errors above are because rtai was not fully installed.

    Mark



  12. #12
    Member
    Join Date
    Feb 2007
    Location
    usa
    Posts
    711
    Downloads
    2
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    if -pruge doesnt work try -purge
    Im guessing that was a typo.



  13. #13
    Member
    Join Date
    Feb 2007
    Location
    usa
    Posts
    711
    Downloads
    2
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    have you tried flatcam on the 10.04 livecd? I see it was tested on 12.04 but I didnt see anywhere that it is required.



  14. #14
    Registered
    Join Date
    Oct 2012
    Location
    Rep Dom
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    Hi Alan,

    Thanks. I understood it to be purge from the start. I am getting still a syntax error. Please review;

    maura@ubuntu:~$ sudo apt-get remove -purge rtai-modules-3.4.55-rtai-2_3.9-shabby-memleak
    E: Command line option 'p' [from -purge] is not known.



  15. #15
    Registered
    Join Date
    Oct 2012
    Location
    Rep Dom
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    Hi again Alan,

    No, but reading the install page of FlatCAM it required sub programs that I could not find on liveCD. It's a thought. Maybe I should reinstall everything from scratch with 10.04 and build from there.

    This is what the install page says:

    Ubuntu

    Tested on Ubuntu 12.04 LTS.

    Install python-gi
    Install libgtk-3-devel
    Install python-shapely
    Install numpy, scipy and matplotlib

    sudo apt-get install python-gi
    sudo apt-get install libgtk-3-devel
    sudo apt-get install python-shapely
    sudo apt-get install python-numpy python-scipy python-matplotlib

    Sometime matplotlib might complain about missing libraries, particularly backend_gtk3agg. Then installing from source can fix this:

    sudo apt-get install python-pip
    sudo pip install matplotlib

    This might complain about missing the distribute package. Install it (and try again):

    easy_install -U distribute

    If Shapely complains about missing libraries do:

    sudo apt-get install libgeos-dev

    One other thing that has come up is the need to install the Python development package in order for binaries to be able to compile. Do:

    sudo apt-get install python-dev

    Finally download and uncompress the Source, switch to the uncompressed directory and run:

    python FlatCAM.py



  16. #16
    Community Moderator wendtmk's Avatar
    Join Date
    Dec 2005
    Location
    USA
    Posts
    591
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    Ach! Sorry about that. Bad info on the apt-get command. Try: "sudo apt-get purge rtai-modules-3.4.55-rtai-2_3.9-shabby-memleak", or "sudo dpkg --purge rtai-modules-3.4.55-rtai-2_3.9-shabby-memleak"

    Mark



  17. #17
    Registered
    Join Date
    Oct 2012
    Location
    Rep Dom
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    Thanks. I'll try it shortly. I'm building another machine right now for Linux only. The other computer has a dual boot with Ubuntu and Win 7.
    Hence I'll try a new install. I'll be careful to install everything right. I have gained a lot of experience with this installation.

    Thanks again.



  18. #18
    Member Tkamsker's Avatar
    Join Date
    Oct 2010
    Location
    Austria
    Posts
    1189
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    Hi This Looks like you dont have real time Kernel build i recommend to cle an the build path and rebuild from scratch i had this error when i tried to build my own Kernel for a Mini Box ... the linuxcnc Forum was verry helpful Thomas

    Gesendet von meinem SM-N9005 mit Tapatalk



  19. #19
    Registered
    Join Date
    Apr 2010
    Location
    p.r.china
    Posts
    42
    Downloads
    0
    Uploads
    0

    Default Re: Linuxcnc 2.5.2 won't run

    To load linuxcnc to ubuntu 12.04 need rtai kernel see:
    LinuxCNC Documentation Wiki: LinuxCNC On Ubuntu Precise

    This will let you load a rtai kernel under 12.04 lts and 2.6... linuxcnc

    Regards



Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Linuxcnc 2.5.2 won't run

Linuxcnc 2.5.2 won't run