Weird error - simulation on Fedora 20 / 64 bits

More
20 Jun 2014 04:20 #48133 by itai
I'm using 2.6.0-pre. Simulation only. Configured with "--prefix=/usr/local/linuxcnc --enable-simulator".
Everything works OK after installation, however, after not in use for some time I try to use linuxcnc and I get:
$ /usr/local/linuxcnc/bin/linuxcnc
LINUXCNC - 2.6.0~pre
Error in startup script: couldn't load file "/usr/local/linuxcnc/lib/tcltk/linuxcnc/bin/../linuxcnc.so": liblinuxcncini.so.0: cannot open shared object file: No such file or directory
    while executing
"load [file join [file dirname [info script]] linuxcnc[info sharedlibextension]]"
    (file "/usr/local/linuxcnc/lib/tcltk/linuxcnc/bin/../linuxcnc.tcl" line 59)
    invoked from within
"source [file join [file dirname [info script]] .. linuxcnc.tcl]"
    (file "/usr/local/linuxcnc/lib/tcltk/linuxcnc/bin/pickconfig.tcl" line 29)

To resolve the problem (until it happens again) I only cd to the src directory and run "make install".
Everything is already compiled, so it should only copy the files to the install directory.
I did not find anything that has changed by this operation.

After "make install" everythign is OK for maybe a week.

Any hint on what could be wrong?

Thanks,
-- Itai

Please Log in or Create an account to join the conversation.

More
20 Jun 2014 13:25 - 22 Jun 2014 21:25 #48139 by ArcEye

I'm using 2.6.0-pre. Simulation only. Configured with "--prefix=/usr/local/linuxcnc --enable-simulator".


The prefix should be /usr/local or better still /usr

The install needs to find /bin /share /lib /include etc as sub dirs of the prefix you specify, and they should be in the PATH and LD_LIBDIR environment variables etc. so the only two that make sense are /usr and /usr/local

If you want it in one place and do not want files in your file system, then build as a RunInPlace build (ie no prefix)

regards
Last edit: 22 Jun 2014 21:25 by ArcEye.

Please Log in or Create an account to join the conversation.

More
26 Jun 2014 05:32 #48247 by itai
Thanks!
Adding the library path to ld.conf probably fixed my problem.

More specific, I have created a file named /etc/ld.so.conf.d/linuxcnc.conf, with the content
/usr/local/linuxcnc/lib
And then ran the command
sudo ldconfig -v

-- Itai

Please Log in or Create an account to join the conversation.

More
26 Jun 2014 22:57 #48259 by ArcEye

More specific, I have created a file named /etc/ld.so.conf.d/linuxcnc.conf, with the content

/usr/local/linuxcnc/lib

And then ran the command

sudo ldconfig -v


That is a very technically correct way to sort out a non standard library dir location B)

Glad it is sorted

regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.137 seconds
Powered by Kunena Forum