我想为Ubuntu安装一个频谱分析工具,并认为Spectrum3d看起来不错。
我试过跟踪安装说明。据我所知,我应该写:
sudo add-apt-repository ppa:nadaeck/spectrum3d在终点站。它不起作用。我收到以下错误消息:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 128, in <module>
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp
curl.perform()
pycurl.error: (7, "couldn't connect to host")从我对linux的基本理解来看,我应该能够在这里写我的sudo密码,但是我写的字符是用明文显示的。它从来不问我的密码
当它不起作用时,我尝试从sourceforge下载并编译它,我也尝试在Ubuntu软件中心搜索它,但是我找不到它。
我下载了最新的版本,然后转到文件夹并输入:
./configure; make; make install我得到了以下输出:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK3... no
checking for GTK2... no
configure: error: GTK library (libgtk-2.0 or libgtk-3.0) is required
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.那么,我怎样才能让这个程序在我的系统上运行呢?
发布于 2014-03-19 02:35:28
PPA太旧了,没有13.10及更高版本的包可用,所以您需要编译源代码。您需要一些头和工具来构建软件:
sudo apt-get install aptitude
sudo aptitude install build-essential libgtk-3-dev libgstreamer0.10-dev libsdl1.2-dev完成之后,您可以像往常一样运行./configure并构建包:
./configure
[...]
config.status: executing depfiles commands
configure: If you want to use gtkglext, its version should match the gtk version (gtkglext-1.0 for gtk-2.0, gtkglext-3.0 for gtk-3.0)
configure: ******************************************
configure: * Gstreamer version ...............1.0 *
configure: * GTK version .................GTK-3.0 *
configure: * OpenGL support...................SDL *
configure: * JACK support......................NO *
configure: * MULTITOUCH support................NO *
configure: ******************************************只剩下make && make install了。我强烈建议构建debian包,这样您就可以轻松地升级/删除。
https://askubuntu.com/questions/435871
复制相似问题