LoginSignup
2
2

More than 5 years have passed since last update.

Debian 7.6でApp Inventor 2を動かすメモ

Last updated at Posted at 2014-12-01

Debian 7.6でApp Inventor 2を動かすメモ

結論

  • appinventor2にはバージョン2.15以上のlibc6を使うpython2.7が必要だがwheezyでは2.13-*だ。
    • jessie (testing)python2.7ならlibc6のバージョンは2.19だ。
      • jessie (testing)のパッケージをちょい借りしてインストールしたら動いた。

手順

公式のインストールマニュアルは http://appinventor.mit.edu/explore/ai2/linux.html にある。

Debianのバージョン
$ cat /etc/debian_version 
7.6
ダウンロード
$ wget http://dl.google.com/dl/appinventor/installers/linux/appinventor2-setup_1.1_all.deb
インストール
dpkg --install appinventor2-setup_1.1_all.deb 
aiStarterを起動
$ /usr/google/appinventor/commands-for-Appinventor/aiStarter
Error loading Python lib '/tmp/_MEI8NLJBE/libpython2.7.so.1.0': /lib/i386-linux-gnu/i686/cmov/libc.so.6: version `GLIBC_2.15' not found (required by /tmp/_MEI8NLJBE/libpython2.7.so.1.0)

libpython2.7GLIBC_2.15まわりでエラーがでた。インストールされているパッケージを調べる。

$ aptitude show libpython2.7
Package: libpython2.7                    
State: installed
Automatically installed: yes
Version: 2.7.3-6+deb7u2
Priority: optional
Section: libs
Maintainer: Matthias Klose <doko@debian.org>
Architecture: i386
Uncompressed Size: 2926 k
Depends: python2.7 (= 2.7.3-6+deb7u2), libc6 (>= 2.7), libgcc1 (>= 1:4.1.1), zlib1g (>= 1:1.2.0)
Replaces: python2.7 (< 2.6)
Description: Shared Python runtime library (version 2.7)
 Version 2.7 of the high-level, interactive object oriented language, includes an extensive class library
 with lots of goodies for network programming, system administration, sounds and graphics. 

 This package contains the shared runtime library, normally not needed for programs using the statically
 linked interpreter.

libc6を使っているようだ。libc6のバージョンを調べる。

$ aptitude show libc6
Package: libc6                           
State: installed
Automatically installed: no
Multi-Arch: same
Version: 2.13-38+deb7u4
Priority: required
Section: libs
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Architecture: i386
Uncompressed Size: 8696 k
Depends: libc-bin (= 2.13-38+deb7u4), libgcc1
Recommends: libc6-i686
Suggests: glibc-doc, debconf | debconf-2.0, locales
Conflicts: prelink (<= 0.0.20090311-1), tzdata (< 2007k-1), tzdata-etch
Breaks: locales (< 2.13), locales-all (< 2.13), nscd (< 2.13)
Replaces: libc6-i386
Provides: glibc-2.13-1
Description: Embedded GNU C Library: Shared libraries
 Contains the standard libraries that are used by nearly all programs on the system. This package includes
 shared versions of the standard C library and the standard math library, as well as many others.
Homepage: http://www.eglibc.org

2.13-38+deb7u4らしい。先のエラーではGLIBC_2.15とあったので、バージョンが古い。バージョンを2.15かそれ以上にしてやると良さそう。

jessie(testing)ではバージョンが2.19-13らしい。 https://packages.debian.org/jessie/libc6

ついでにjessie(testing)のpython2.7の依存関係を調べてみる。 https://packages.debian.org/jessie/python2.7

以下一部抜粋。なるほどlibc6 (>= 2.15)らしい。

  • python2.7 (2.7.8-11)
    • libpython2.7-stdlib (= 2.7.8-11)
      • libc6 (>= 2.15)

ということで、jessie (testing)のpython2.7をインストールしよう。

/etc/apt/sources.listに以下を追加
deb http://ftp.jp.debian.org/debian testing main contrib non-free
deb-src http://ftp.jp.debian.org/debian testing main contrib non-free 
アップデート
$ aptitude update
インストール
$ aptitude install python2.7/testing
バージョンの確認
$ aptitude versions python2.7
Package idle-python2.7:                   
p   2.7.3-6+deb7u2                     stable         500
p   2.7.8-11                           testing        500

完。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2