求助:如何在Ubuntu 17.10上安装Qtstalker?旧教程执行失败
I totally get how frustrating it is when following the official installation guide for Qtstalker on Ubuntu 17.10 ends up failing—those older guides often don’t account for package name changes or compatibility quirks in this specific Ubuntu release. Let’s walk through a reliable step-by-step process to get it installed properly:
Step 1: Install Required Dependencies
First, make sure your system is up-to-date and you have all the build tools and libraries needed:
- Update your package list and upgrade existing packages:
sudo apt update && sudo apt upgrade -y - Install basic compilation tools:
sudo apt install build-essential cmake git -y - Install Qt4 and other core dependencies (Qtstalker relies on Qt4 for Ubuntu 17.10 compatibility):
sudo apt install libqt4-dev qt4-dev-tools libqwt-dev libsqlite3-dev libssl-dev libcurl4-openssl-dev -y
Step 2: Grab the Qtstalker Source Code
The official pre-built packages might be outdated, so we’ll compile from the latest compatible source:
git clone https://git.code.sf.net/p/qtstalker/code qtstalker-code cd qtstalker-code
Step 3: Compile and Install
Ubuntu 17.10 might have both Qt4 and Qt5 installed, so we’ll explicitly use Qt4’s qmake to avoid version conflicts:
- Generate the build files with Qt4’s qmake:
qmake-qt4 qtstalker.pro - Compile the source (use
-j$(nproc)to speed up compilation with all your CPU cores):make -j$(nproc) - Install the compiled binaries:
sudo make install
Step 4: Fix Post-Installation Issues (If Any)
- If you get a "library not found" error when launching Qtstalker, update the system’s library cache:
sudo ldconfig - If QWT-related errors pop up during compilation, you may need to manually install a compatible QWT version:
- Download QWT 6.1.3 (the last version that plays nice with Qt4 on Ubuntu 17.10):
wget https://sourceforge.net/projects/qwt/files/qwt/6.1.3/qwt-6.1.3.tar.bz2 tar xjf qwt-6.1.3.tar.bz2 cd qwt-6.1.3 - Compile and install QWT:
qmake-qt4 qwt.pro make -j$(nproc) sudo make install - Then go back to the Qtstalker directory and re-run the compilation steps.
- Download QWT 6.1.3 (the last version that plays nice with Qt4 on Ubuntu 17.10):
Once everything is done, you can launch Qtstalker by typing qtstalker in your terminal.
内容的提问来源于stack exchange,提问作者Lumbeezl

