Installing LinuxCNC 2.9 or Master on Linux Mint 21

More
15 Mar 2023 10:05 - 15 Mar 2023 10:16 #266733 by song_gy
configure: error: 
  Could not link test program to Python. Maybe the main Python library has been
  installed in some non-standard library path. If so, pass it to configure,
  via the LIBS environment variable.
  Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"
  ============================================================================
   ERROR!
   You probably have to install the development version of the Python package
   for your distribution.  The exact name of this package varies among them.
  ============================================================================




[code]  选择       路径               优先级  状态
------------------------------------------------------------
  0            /usr/bin/python3.11   2         自动模式
  1            /usr/bin/python3.10   1         手动模式
* 2            /usr/bin/python3.11   2         手动模式

要维持当前值
[/code]
  • [code]请按<回车键>,或者键入选择的编号:
    [/code]
  • It reports an error like this, when I use this command "./configure --with-realtime=uspace --disable-build-documentation-translation --enable-non"
    Do you know what his problem is!
    Looking forward to your reply
    Thanks
Last edit: 15 Mar 2023 10:16 by song_gy.

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

More
15 Mar 2023 10:27 #266735 by Aciera
Hmm, I have never come across this error.

Did you execute:

$ ./autogen.sh

before running './configure.sh ....' ? In my case I had to install 'automake' first:

$ sudo apt install automake

 

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

More
15 Mar 2023 10:35 #266736 by song_gy
song@song-virtual-machine:~$ sudo apt install automake
[sudo] song 的密码:           
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
automake 已经是最新版 (1:1.16.5-1.3)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
song@song-virtual-machine:~$ cd linuxcnc-dev/src
song@song-virtual-machine:~/linuxcnc-dev/src$ ./autogen.sh
song@song-virtual-machine:~/linuxcnc-dev/src$ ./configure --with-realtime=uspace --disable-build-documentation-translation --enable-non-distributable
checking for c++... c++
checking whether the C++ compiler works... yes

configure: error: 
  Could not link test program to Python. Maybe the main Python library has been
  installed in some non-standard library path. If so, pass it to configure,
  via the LIBS environment variable.
  Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"
  ============================================================================
   ERROR!
   You probably have to install the development version of the Python package
   for your distribution.  The exact name of this package varies among them.
  ============================================================================

Yes I also installed "automake"
But the error still exists

Thank you very much for your reply, it seems that I can only live bookworm version

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

More
15 Mar 2023 10:39 #266737 by Aciera
Here is a list of installed packages from my terminal history. (Some may be unnecessary as it can be a bit of a process of trial and error to get the right packages installed) :

sudo apt install automake
sudo apt install libudev-dev
sudo apt install libusb-1.0-0-dev
sudo apt install glib
sudo apt install libglib2.0-dev
sudo apt install libgtk-3-dev
sudo apt install yapps2
sudo apt install intltool
sudo apt install tcl8.6-dev tk8.6-dev
sudo apt install bwidget
sudo apt install tclx
sudo apt install libreadline-gplv2-dev
sudo apt install libxmu6
sudo apt install libxmu-dev
sudo apt install asciidoc
sudo apt install libmodbus-dev
sudo apt install libgtk2.0-dev
sudo apt install  libboost-python-dev


#python update as per howto in the link
sudo apt update
sudo apt install python3.11-full


sudo apt install python3-gi
sudo apt install libpango-1.0-0


 

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

More
15 Mar 2023 10:49 #266738 by Aciera
Also, have you checked that the folders 'python3', 'python3.10', 'python3.11' are present in '/usr/lib' ? 
The following user(s) said Thank You: song_gy

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

More
15 Mar 2023 11:07 #266741 by song_gy
Yes all of them are up to date
I will try a few more times
It's also possible that I'm running in a virtual machine
Attachments:

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

More
15 Mar 2023 11:45 #266745 by tommylight
The following user(s) said Thank You: my1987toyota, song_gy

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

More
15 Mar 2023 21:47 #266790 by my1987toyota

Spammer booted.
 

I think they're multiplying.
The following user(s) said Thank You: tommylight

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

More
18 Jun 2023 12:32 #273775 by Aciera
Just as a little experiment I removed the configure check for pango on a recent rip install, which is where the build always failed for me when using Mint21 (Python 3.10.6). LinuxCNC then built just fine. Starting configs then give errors about missing opengl and missing qt packages that could easily be installed from the mint repo and I got an apparently working RIP install on Mint21 using Python 3.10.6.
If anybody knows why Python version 3.11 and above is stated as a requirement then please leave a comment.
Thanks
The following user(s) said Thank You: tommylight

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

More
18 Jun 2023 12:53 #273777 by tommylight
Compiling and building debs almost always worked for Mint, it just takes a bit of time.
Granted, the docs gave issues for as far as i can recall back, then again i rarely build debs.
I always aim to find the simplest way to install, so new users do not have to go through a bunch of hoops and get lost in the way.
As for Python, i really liked it ... i said liked, past tense. Now it has become a headache of huge proportions.
Now with Debian it is very easy, a single line and it is up and running.
Again, granted you do not bump into Debian messes, they also tend to do a lot of those, like, yesterday i downloaded the Hybrid ISO with Mate desktop, installed, installing LinuxCNC fails while building the kernel, but LinuxCNC installs and runs OK, without the RT kernel as it insists on having some raspi (raspberry PI) stuff despite being a 64bit AMD version. Had to delete 3 files for rpi stuff, on a 64bit AMD version!!!
After removing those files, everything works perfectly well.
Just to be clear, that is a Debian Mate issue, XFCE version does not seem to have it, and i have not tested other flavors/versions.

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

Time to create page: 0.204 seconds
Powered by Kunena Forum