Error on config startup : Package Require Linuxcnc (solved)

More
11 Oct 2020 00:59 - 11 Oct 2020 05:22 #185657 by rodw
HI guys, I just pulled a new instance of Linux and compiled 2.8 as RIP. and I get this error when opening any config. I am running Linux mint which was installed before the release of 2.8
rod@rods-pc:~/linuxcnc-plasmac$ linuxcnc
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/rod/linuxcnc/configs/sim.monokrom/plasma'
Machine configuration file is 'xyz.ini'
can't find package Linuxcnc
    while executing
"package require Linuxcnc "
    (file "/home/rod/linuxcnc-plasmac/lib/hallib/check_config.tcl" line 160)
check_config validation failed
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/rod/linuxcnc_debug.txt
and
    /home/rod/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

Any ideas?
Last edit: 11 Oct 2020 05:22 by rodw.

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

More
11 Oct 2020 05:24 #185665 by rodw
Solved, the path included another RIP instance so it was looking in the wrong folder for linuxcnc.so.
I thought rip-environment should overwite the path.... but it doesn't remove old paths

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

More
11 Oct 2020 08:00 #185676 by BeagleBrainz
That was a tricky one. Was that in the context of the same terminal ?

But one would think any variables would be overwritten.

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

More
11 Oct 2020 08:06 #185677 by rodw
Yeh, I must look at the script. It is actually the path variable which does not have the old reference removed so it had paths to more than one version of the linuxcnc-dev folder... Thinking about it, the path might be hard to modify. The script would need to look at some of the other ENV variables and parse the path to find what needs to be removed...

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

More
11 Oct 2020 08:50 #185686 by BeagleBrainz
Yes, yes, yes, I get where you are coming from now. It adds to the path, rather than parses & modifies the path.
The following user(s) said Thank You: rodw

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

More
11 Oct 2020 09:25 #185691 by rodw

Yes, yes, yes, I get where you are coming from now. It adds to the path, rather than parses & modifies the path.


A simpler alternative might be to provide more informative error messages. Maybe:
"Unable to locate the Linuxcnc package. Check your configuration and ensure no multiple entries in your path exist. Try rebooting which may resolve the error"

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

More
29 Mar 2023 05:15 #267771 by mor
I went from a package installation to a RIP and it worked for a bit then just stopped with the same error you encountered.

What should I delete to start from scratch?

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

More
29 Mar 2023 05:26 #267772 by mor
I just rebuilt and ran the rip-environment script and that seemed to work. I deleted the previous files installed by "make install".

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

Time to create page: 0.171 seconds
Powered by Kunena Forum