作成中
[root@rockylinux9 ~]# cat /etc/redhat-release
Rocky Linux release 9.5 (Blue Onyx)
[root@rockylinux9 ~]# dnf groupinstall "Development Tools"
[root@rockylinux9 ~]# dnf install epel-release
[root@rockylinux9 ~]# dnf install --enablerepo=devel cmake texinfo scl-utils autoconf271 gtk4-devel gobject-introspection-devel gfortran libepoxy-devel swig blas-devel re2c libpsl-devel
readline-devel
[root@rockylinux9 ~]# mkdir script ; cd script
[root@rockylinux9 script]#
[root@rockylinux9 script]# wget https://raw.githubusercontent.com/pemsley/coot/main/build-it-3-3
[root@rockylinux9 script]# vi ./build-it-3-3
libffiにtexinfoは必要で、python3.11.4向けにlibffiは必要
gfortranはnumpyに必要. numpyがないとrdkitができない
gobject-introspection-develは内製されるgobject-introspectionの代わり. 内製品だとPyGobjectでmeson,ninjaでエラーになる
libepoxy-devel, swig, blas-develはcootに必要
re2cはninjaに必要
gobject-introspection-1.80はglib 2.80.0以上が必要でrockylinux9(2.68)なので下げる
|
[root@rockylinux9 script]# source scl_source enable autoconf271 (cootが
[root@rockylinux9 script]# bash ./build-it-3-3 (rdkitが作れない. 理由はboostがnumpyを認識しないので. )
[root@rockylinux9 script]# rm ../autobuild/Linux-rockylinux9-gtk4/include/boost/functional/hash.hpp (boostの一部を削除します)
[root@rockylinux9 script]# bash ./build-it-3-3 (再度boostが作られる. これでnumpyを含んだboostが作られて、rdkitも正常に作られる)
(最後のcootまで作るが下記エラーで断念)
/usr/bin/ld: ./.libs/libcootsumo.so: undefined reference to `graphics_info_t::scale_down_graphics'
/usr/bin/ld: ./.libs/libcootsumo.so: undefined reference to `graphics_info_t::scale_up_graphics'
(coot-1.1.11は無理みたい on rockylinux9)
[root@rockylinux9 script]# rm -rf coot/ build-coot/
[root@rockylinux9 script]# wget https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/source/releases/coot-1.1.10.tar.gz
[root@rockylinux9 script]# tar xf coot-1.1.10.tar.gz
[root@rockylinux9 script]# mv coot-1.1.10 coot
[root@rockylinux9 script]# bash ./build-it-3-3
一応 1.1.10は作れたけど、、できた coot-Linux-x86_64-rocky-9.5-gtk4 や Linux-rockylinux9-gtk4 を /appsに移しても作った時の場所情報が入り込んでいて
他へコピーして使えない. あと非常に不安定だなぁ...
まぁーubuntu向けっぽいな
(ubuntu22.04)
apt install build-essential git cmake m4 libtool swig flex bison gfortran autoconf automake libssl-dev libblas-dev liblapack-dev libncurses5-dev libjpeg-dev libgtk-4-dev libpsl-dev
libblas-dev liblapack-dev \
libgtk-4-dev libpsl-dev
coot-1.1.11以降は gdk 4.10 以降が必要でubuntu22.04は4.6.2がベースなので無理. coot-1.1.10なら作れた. ubuntu24.04はgdk 4.14.2 なので大丈夫っぽい.
boost_versionは 1.83、gobject_introspection_versionは 1.72ならubuntu22.04で行ける.
--- build-it-3-3.orig 2024-12-22 11:09:02.874561888 +0900
+++ build-it-3-3 2024-12-23 00:51:29.164724458 +0900
@@ -3359,13 +3359,13 @@
boost_version=1_72_0
boost_version=1_74_0
boost_version=1_83_0
- boost_version=1_86_0
+ #boost_version=1_86_0
boost_server_dir=1.72.0
boost_server_dir=1.72.0
boost_server_dir=1.74.0
boost_server_dir=1.82.0
boost_server_dir=1.83.0
- boost_server_dir=1.86.0
+ #boost_server_dir=1.86.0
echo BUILDING boost $boost_version :
echo BUILDING boost $boost_version >&2
@@ -4074,8 +4074,7 @@
gobject_introspection_version=1.68.0
gobject_introspection_version=1.71.0
gobject_introspection_version=1.72.0
- gobject_introspection_version=1.80.0
- gobject_introspection_version_stub=1.80
+ gobject_introspection_version_stub=1.72
# 20220820-PE note to self: 1.73.0 is now avaliable
# https://download.gnome.org/sources/gobject-introspection/1.73/
d=http://ftp.acc.umu.se/pub/GNOME/sources/gobject-introspection/1.50
@@ -4084,6 +4083,7 @@
d=http://ftp.acc.umu.se/pub/GNOME/sources/gobject-introspection/1.72
d=http://ftp.acc.umu.se/pub/GNOME/sources/gobject-introspection/1.72
d=http://ftp.acc.umu.se/pub/GNOME/sources/gobject-introspection/$gobject_introspection_version_stub
+ d=http://download.gnome.org/sources/gobject-introspection/$gobject_introspection_version_stub
${WGET} $d/gobject-introspection-$gobject_introspection_version.tar.xz
tar xf ${AUTOBUILD_SOURCES}/gobject-introspection-$gobject_introspection_version.tar.xz
@@ -4747,10 +4747,11 @@
echo save_ld_library_path=$LD_LIBRARY_PATH
# reset LD_LIBRARY_PATH for now. Do we need it set from now on actually?
export LD_LIBRARY_PATH=
- if git clone https://github.com/pemsley/coot.git -b main --depth 2 ; then
+ if git clone https://github.com/pemsley/coot.git -b main ; then
echo git clone https://github.com/pemsley/coot.git -b main without error status
echo done clone
cd coot
+ git checkout Release-1.1.10
rm -rf autom4te.cache
if [ -e ltmain.sh ] ; then rm ltmain.sh ; fi
if [ -e config.guess ] ; then rm config.guess ; fi
&ref(): File not found: "2024y12m23d_021626009.png" at page "coot/source/v1";