Ubuntu 14.04にmeld 3.11をインストールする方法は?

Ubuntu 14.04にmeld 3.11をインストールする方法は?

Ubuntu 14.04でMeld 3.11を起動しようとしています。

以下の方法に従ってみました。」

cd ~ 
git clone https://git.gnome.org/browse/meld 
cd meld  
sudo ln -s ~/meld/bin/meld /usr/bin/meld

しかし、端末で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

依存関係の問題かPythonパスの問題かはわかりません。

ベストアンサー1

#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

再インストールせずにコード自体を作業したい場合は、通常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)なので、.checkoutブランチを使用しますgit checkout meld-3-14

おすすめ記事