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$
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.
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.
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: 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:~$
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:
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)
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.
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.
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$
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.
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"
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.
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