<< python cgkit has been installed on my Zorin-OS-12.4-Core-64 戻る Manjaro Linux18 python cgkit install >>

arch linux







xfce4-terminal


sudo pacman -S python2-pygame python2-opengl python2-pyserial ode tk

AURに登録されているパッケージをインストールするためのパッケージを導入します
ここではyay(Yet another Yogurt)をインストールします

$ sudo pacman -S git
$ git clone https://aur.archlinux.org/yay.git
$ cd yay
$ makepkg -si


$ yay -S python2-pyode
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo Make: 1] pyrex-0.9.9-5
[Aur: 1] python2-pyode-20100322-1

==> Remove make dependencies after install? [y/N] y
:: Downloaded PKGBUILD (1/1): python2-pyode
1 python2-pyode (Build Files Exist)
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> Diffs to show?
==> i
:: Parsing SRCINFO (1/1): python2-pyode
依存関係を解決しています...
衝突するパッケージがないか確認しています...

パッケージ (1) pyrex-0.9.9-5

合計ダウンロード容量: 0.24 MiB
合計インストール容量: 1.80 MiB

:: インストールを行いますか? [Y/n] y
:: パッケージを取得します...
pyrex-0.9.9-5-any 244.5 KiB 203K/s 00:01 [######################] 100%
(1/1) キーリングのキーを確認 [######################] 100%
(1/1) パッケージの整合性をチェック [######################] 100%
(1/1) パッケージファイルのロード [######################] 100%
(1/1) ファイルの衝突をチェック [######################] 100%
(1/1) 空き容量を確認 [######################] 100%
:: パッケージの変更を処理しています...
(1/1) インストール pyrex [######################] 100%
:: トランザクション後のフックを実行...
(1/1) Arming ConditionNeedsUpdate...
==> パッケージを作成: python2-pyode 20100322-1 (2018年11月10日 13時11分23秒)
==> ソースを取得...
-> ダウンロード PyODE-snapshot-2010-03-22.tar.bz2...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 397 100 397 0 0 710 0 --:--:-- --:--:-- --:--:-- 708
100 55651 100 55651 0 0 26500 0 0:00:02 0:00:02 --:--:-- 77078
==> source で md5sums ファイルを検証...
PyODE-snapshot-2010-03-22.tar.bz2 ... 成功
==> Cleaning up...
==> パッケージを作成: python2-pyode 20100322-1 (2018年11月10日 13時11分26秒)
==> ランタイムの依存関係を確認...
==> ビルドタイムの依存関係を確認...
==> ソースを取得...
-> PyODE-snapshot-2010-03-22.tar.bz2 を見つけました
==> source で md5sums ファイルを検証...
PyODE-snapshot-2010-03-22.tar.bz2 ... 成功
==> 既存の $srcdir/ ディレクトリを削除...
==> ソースを展開...
-> PyODE-snapshot-2010-03-22.tar.bz2 を bsdtar で展開
==> ソースの準備ができました。
==> パッケージを作成: python2-pyode 20100322-1 (2018年11月10日 13時11分28秒)
==> ランタイムの依存関係を確認...
==> ビルドタイムの依存関係を確認...
==> 警告: 既存の $srcdir/ ツリーを使用
==> build() を開始...
INFO: found in /usr/include
INFO: Creating ode_trimesh.c
pyrexc -o ode_trimesh.c -I. -Isrc src/ode.pyx
/home/mak/.cache/yay/python2-pyode/src/PyODE-snapshot-2010-03-22/src/mass.pyx:263:18: Warning: 'not None' will become the default in a future version of Pyrex. Use 'or None' to allow passing None.
INFO: Creating ode_notrimesh.c
pyrexc -o ode_notrimesh.c -I. -Isrc src/ode.pyx
/home/mak/.cache/yay/python2-pyode/src/PyODE-snapshot-2010-03-22/src/mass.pyx:263:18: Warning: 'not None' will become the default in a future version of Pyrex. Use 'or None' to allow passing None.
INFO: Installing with trimesh support.
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/xode
copying xode/errors.py -> build/lib.linux-x86_64-2.7/xode
copying xode/transform.py -> build/lib.linux-x86_64-2.7/xode
copying xode/body.py -> build/lib.linux-x86_64-2.7/xode
copying xode/joint.py -> build/lib.linux-x86_64-2.7/xode
copying xode/node.py -> build/lib.linux-x86_64-2.7/xode
copying xode/parser.py -> build/lib.linux-x86_64-2.7/xode
copying xode/geom.py -> build/lib.linux-x86_64-2.7/xode
copying xode/__init__.py -> build/lib.linux-x86_64-2.7/xode
running build_ext


==> package() を開始...
INFO: found in /usr/include
INFO: ode_trimesh.c is up to date
INFO: ode_notrimesh.c is up to date
INFO: Installing with trimesh support.
running install
running build
running build_py
running build_ext
running install_lib
creating /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr
creating /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib
creating /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7
creating /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages
copying build/lib.linux-x86_64-2.7/ode.so -> /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages
creating /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode
copying build/lib.linux-x86_64-2.7/xode/errors.py -> /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode
copying build/lib.linux-x86_64-2.7/xode/transform.py -> /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode
copying build/lib.linux-x86_64-2.7/xode/body.py -> /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode
copying build/lib.linux-x86_64-2.7/xode/joint.py -> /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode
copying build/lib.linux-x86_64-2.7/xode/node.py -> /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode
copying build/lib.linux-x86_64-2.7/xode/parser.py -> /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode
copying build/lib.linux-x86_64-2.7/xode/geom.py -> /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode
copying build/lib.linux-x86_64-2.7/xode/__init__.py -> /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode
byte-compiling /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode/errors.py to errors.pyc
byte-compiling /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode/transform.py to transform.pyc
byte-compiling /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode/body.py to body.pyc
byte-compiling /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode/joint.py to joint.pyc
byte-compiling /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode/node.py to node.pyc
byte-compiling /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode/parser.py to parser.pyc
byte-compiling /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode/geom.py to geom.pyc
byte-compiling /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/xode/__init__.py to __init__.pyc
running install_egg_info
Writing /home/mak/.cache/yay/python2-pyode/pkg/python2-pyode/usr/lib/python2.7/site-packages/PyODE-1.2.0-py2.7.egg-info
==> インストールを整理...
-> libtool ファイルを削除...
-> 不要なファイルを削除...
-> スタティックライブラリファイルを削除しています...
-> バイナリとライブラリから不要なシンボルを削除...
-> man と info ページを圧縮...
==> パッケージの問題をチェック...
==> パッケージを作成 "python2-pyode"...
-> .PKGINFO ファイルを生成...
-> .BUILDINFO ファイルを生成...
-> .MTREE ファイルを生成...
-> パッケージの圧縮...
==> fakeroot 環境を終了。
==> 作成完了: python2-pyode 20100322-1 (2018年11月10日 13時11分41秒)
==> Cleaning up...
パッケージをロード...
依存関係を解決しています...
衝突するパッケージがないか確認しています...

パッケージ (1) python2-pyode-20100322-1

合計インストール容量: 0.53 MiB

:: インストールを行いますか? [Y/n]
(1/1) キーリングのキーを確認 [######################] 100%
(1/1) パッケージの整合性をチェック [######################] 100%
(1/1) パッケージファイルのロード [######################] 100%
(1/1) ファイルの衝突をチェック [######################] 100%
(1/1) 空き容量を確認 [######################] 100%
:: パッケージの変更を処理しています...
(1/1) インストール python2-pyode [######################] 100%
:: トランザクション後のフックを実行...
(1/1) Arming ConditionNeedsUpdate...
依存関係を確認しています...

パッケージ (1) pyrex-0.9.9-5

合計削除容量: 1.80 MiB

:: 以上のパッケージを削除しますか? [Y/n]
:: パッケージの変更を処理しています...
(1/1) 削除 pyrex [######################] 100%
:: トランザクション後のフックを実行...
(1/1) Arming ConditionNeedsUpdate...
------------------------------------------------
特定のファイルが含まれているパッケージを検索
ファイルデータベースを同期してください:

# pacman -Fy
ファイルが含まれているパッケージを検索するには:


$ pacman -Fs libz.so
core/zlib 1:1.2.11-3
usr/lib/libz.so
~]$

[mak@localhost ~]$ pacman -Fs libjpeg.so
extra/jre8-openjdk-headless 8.u192-1
usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libjpeg.so
extra/libjpeg-turbo 2.0.0-1
usr/lib/libjpeg.so
community/darktable 2:2.4.4-2
usr/lib/darktable/plugins/imageio/format/libjpeg.so
[mak@localhost ~]$ pacman -Fs libfreetype.so
extra/freetype2 2.9.1-1
usr/lib/libfreetype.so
[mak@localhost ~]$ pacman -S zlib libjpeg-turbo freetype2
エラー: root 権限がないとこの操作は実行できません。
[mak@localhost ~]$ sudo pacman -S zlib libjpeg-turbo freetype2
警告: zlib-1:1.2.11-3 は最新です -- 再インストール
警告: libjpeg-turbo-2.0.0-1 は最新です -- 再インストール
警告: freetype2-2.9.1-1 は最新です -- 再インストール
依存関係を解決しています...
衝突するパッケージがないか確認しています...

パッケージ (3) freetype2-2.9.1-1 libjpeg-turbo-2.0.0-1 zlib-1:1.2.11-3

合計インストール容量: 4.43 MiB
最終的なアップグレード容量: 0.00 MiB

:: インストールを行いますか? [Y/n] y


http://www.pythonware.com/products/pil/

cd Downloads/
tar xvf Imaging-1.1.7.tar.gz

/usr/binでターミナルを開きます
sudo mv python python.orig
[mak@localhost bin]$ sudo ln -s python2 python


python setup.py build_ext -i

/temp.linux-x86_64-2.7/_imagingmath.o
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-x86_64-2.7/_imagingmath.o -L/usr/local/lib -L/usr/lib -L/usr/lib -lpython2.7 -o /home/mak/Downloads/Imaging-1.1.7/PIL/_imagingmath.so
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.7.15 (default, Jun 27 2018, 13:05:28)
[GCC 8.1.1 20180531]
--------------------------------------------------------------------
--- TKINTER support available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available

*** Warning: zlib 1.2.11 may contain a security vulnerability.
*** Consider upgrading to zlib 1.2.3 or newer.
*** See: http://www.kb.cert.org/vuls/id/238678
http://www.kb.cert.org/vuls/id/680620
http://www.gzip.org/zlib/advisory-2002-03-11.txt

--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.

$ sudo python setup.py install
running install_scripts
copying build/scripts-2.7/pildriver.py -> /usr/bin
copying build/scripts-2.7/pilfont.py -> /usr/bin
copying build/scripts-2.7/pilfile.py -> /usr/bin
copying build/scripts-2.7/pilconvert.py -> /usr/bin
copying build/scripts-2.7/pilprint.py -> /usr/bin
changing mode of /usr/bin/pildriver.py to 755
changing mode of /usr/bin/pilfont.py to 755
changing mode of /usr/bin/pilfile.py to 755
changing mode of /usr/bin/pilconvert.py to 755
changing mode of /usr/bin/pilprint.py to 755
running install_egg_info
Writing /usr/lib/python2.7/site-packages/PIL/PIL-1.1.7-py2.7.egg-info
creating /usr/lib/python2.7/site-packages/PIL.pth
Imaging-1.1.7]$

Imaging-1.1.7]$ python
Python 2.7.15 (default, Jun 27 2018, 13:05:28)
[GCC 8.1.1 20180531] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
>>> import Tkinter
>>>
[mak@localhost Imaging-1.1.7]$ python -m Tkinter



$ python checkenv.py
----------------------------------------------------------------------
Python 2.7.15 (default, Jun 27 2018, 13:05:28)
[GCC 8.1.1 20180531]
Platform: linux2
----------------------------------------------------------------------
Python version: 2.7........... OK
PyProtocols................... missing

PyProtocols is not installed. This package is required as soon as you are
using the cgkit scene management stuff (for example, as soon as you want
to use the viewer or render tool). You can get PyProtocols at this site:
http://peak.telecommunity.com/PyProtocols.html

PyOpenGL...................... is installed
PIL........................... is installed
pygame........................ pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
is installed
PyODE......................... is installed
PySerial...................... is installed
cgkit (base).................. missing
cgkit (C++ lib)............... failed

The cgkit supportlib could not be imported. One possible reason for that
is that shared libraries (such as the b oost_python runtime or OpenGL)
could not be found.

cgkit (all)................... failed


http://peak.telecommunity.com/PyProtocols.html
http://peak.telecommunity.com/dist/
$ unzip PyProtocols-0.9.3.zip

sudo python setup.py --without-speedups install

sudo pacman -S boost boost-libs scons

scons

n file included from wrappers/py_arrayslots1.cpp:5:
wrappers/py_arrayslots1.cpp: 関数 ‘void class_ArraySlots()’ 内:
wrappers/py_slot.h:43:75: エラー: unable to find string literal operator ‘operator""sname’ with ‘const char [11]’, ‘long unsigned int’ arguments
e ARRAYSLOT(sname,stype) class_<_ArraySlotIterator >("_"sname"_Iterator", init&>()) \
^~~~~~~~~~~

wrappers/py_slot.h:43:75: 備考: in definition of macro ‘ARRAYSLOT’
e ARRAYSLOT(sname,stype) class_<_ArraySlotIterator >("_"sname"_Iterator", init&>()) \
^~~~~~~~~~~

wrappers/py_slot.h:43:75: エラー: unable to find string literal operator ‘operator""sname’ with ‘const char [11]’, ‘long unsigned int’ arguments
e ARRAYSLOT(sname,stype) class_<_ArraySlotIterator >("_"sname"_Iterator", init&>()) \
^~~~~~~~~~~

wrappers/py_slot.h:43:75: 備考: in definition of macro ‘ARRAYSLOT’
e ARRAYSLOT(sname,stype) class_<_ArraySlotIterator >("_"sname"_Iterator", init&>()) \
^~~~~~~~~~~

error: command 'gcc' failed with exit status 1


wrappers/py_geoms1.cpp: メンバ関数 ‘boost::python::api::object _VariableIterator::next()’ 内:
wrappers/py_geoms1.cpp:145:24: エラー: could not convert ‘std::make_tuple(_Elements&& ...) [with _Elements = {std::__cxx11::basic_string, std::allocator >&, const support3d::VarStorage&, const support3d::VarType&, const int&}](info.support3d::PrimVarInfo::storage, info.support3d::PrimVarInfo::type, info.support3d::PrimVarInfo::multiplicity)’ from ‘std::tuple, std::allocator >, support3d::VarStorage, support3d::VarType, int>’ to ‘boost::python::api::object’
return make_tuple(name, info.storage, info.type, info.multiplicity);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wrappers/py_geoms1.cpp: 関数 ‘boost::python::api::object findVariable(support3d::GeomObject*, std::__cxx11::string)’ 内:
wrappers/py_geoms1.cpp:166:22: エラー: could not convert ‘std::make_tuple(_Elements&& ...) [with _Elements = {std::__cxx11::basic_string, std::allocator >&, support3d::VarStorage&, support3d::VarType&, int&}](info->support3d::PrimVarInfo::storage, info->support3d::PrimVarInfo::type, info->support3d::PrimVarInfo::multiplicity)’ from ‘std::tuple, std::allocator >, support3d::VarStorage, support3d::VarType, int>’ to ‘boost::python::api::object’
return make_tuple(name, info->storage, info->type, info->multiplicity);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command 'gcc' failed with exit status 1


$ sudo python setup.py install


Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.
  • -
  • -

<< python cgkit has been installed on my Zorin-OS-12.4-Core-64 戻る Manjaro Linux18 python cgkit install >>