Installing LinuxCNC 2.9 or Master on Linux Mint 21

More
3 years 7 months ago - 3 years 7 months ago #266733 by song_gy
Code:
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]请按<回车键>,或者键入选择的编号:
    [/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: 3 years 7 months ago by song_gy.

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

More
3 years 7 months ago #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
3 years 7 months ago #266736 by song_gy
Code:
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
3 years 7 months ago #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
3 years 7 months ago #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
3 years 7 months ago #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

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

Time to create page: 0.145 seconds
Powered by Kunena Forum