Ibn*_*eed 9 ubuntu python software-installation
我正在尝试让 meld 3.11 在 ubuntu 14.04 上工作
我尝试按照下面的方法”
cd ~
git clone https://git.gnome.org/browse/meld
cd meld
sudo ln -s ~/meld/bin/meld /usr/bin/meld
Run Code Online (Sandbox Code Playgroud)
但是当我在终端中运行 meld 时,我收到以下错误
Traceback (most recent call last):
File "/usr/bin/meld", line 223, in <module>
setup_settings()
File "/usr/bin/meld", line 197, in setup_settings
cwd=melddir)
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Run Code Online (Sandbox Code Playgroud)
我不确定它的依赖项问题还是 python 路径问题。
Rob*_*ans 17
#Make a clean working directory
mkdir -p work/crap
#Get in to that directory
cd work/crap
#Clone git head
git clone https://git.gnome.org/browse/meld
#Get in to that project directory
cd meld
#Install dependencies
sudo apt-get install intltool itstool gir1.2-gtksource-3.0 libxml2-utils
#Install meld
sudo python setup.py install
Run Code Online (Sandbox Code Playgroud)
如果您想在不重新安装的情况下处理代码本身,我通常会通过在 venv 中安装并在 IDE 中打开 venv 中的安装文件夹来实现。
在这些步骤之后在终端中运行 meld 的结果:
请注意,当前版本的 meld 需要 GTK+ 3.14,这在 Ubuntu 14.04 上不可用(Meld requires GTK+ 3.14 or higher.
错误)。所以对于 Ubuntu 14.04,你需要检出最后一个不需要 GTK+ 3.14 的版本。那是 meld 3.14.* 分支(当前是 3.14.3),所以使用git checkout meld-3-14
.