作成中

[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)なので下げる

--- build-it-3-3.orig   2025-02-02 14:12:39.194665512 +0900
+++ build-it-3-3        2025-02-03 16:15:41.708234361 +0900
@@ -1047,7 +1047,7 @@
          if test -e /etc/os-release ; then
              # 20240914 strip quote marks also now
              dist_name=$(grep ^ID= /etc/os-release | sed -e 's/ID=//' -e 's/"//g')
-             dist_ver=$(grep ^VERSION_ID /etc/os-release | sed -e 's/VERSION_ID=//')
+             dist_ver=$(grep ^VERSION_ID /etc/os-release | sed -e 's/VERSION_ID=//' -e 's/"//g')
          else
              for i in fedora-release redhat-release redhat-release-workstation centos-release sl-release openSUSE-release ; do
                  rpm -q --qf '%{name}' ${i}
@@ -1594,8 +1594,8 @@
 # -nv is means not-verbose (but not quiet)
 # WGET="LD_LIBRARY_PATH=/usr/lib wget -N -P ${AUTOBUILD_SOURCES}"
 # WGETO="LD_LIBRARY_PATH=/usr/lib wget   -P ${AUTOBUILD_SOURCES}"
-WGET="wget -nv -N -P ${AUTOBUILD_SOURCES}"
-WGETO="wget -nv  -P ${AUTOBUILD_SOURCES}"
+WGET="wget -nv -N -P ${AUTOBUILD_SOURCES} --no-check-certificate"
+WGETO="wget -nv  -P ${AUTOBUILD_SOURCES} --no-check-certificate"
 
 # latest version (without .tar.gz extension)
 coot_version=$fallback_coot_version
@@ -3895,7 +3895,7 @@
           if test "$dist_name" = ubuntu ; then
               echo don.t mess with LDFLAGS here on ubuntu
           else
-              if test "$dist_name" = almalinux ; then
+              if test "$dist_name" = almalinux || test "$dist_name" = rocky ; then
                   echo don.t mess with LDFLAGS on almalinux
               else
                  if test "$dist_name" = arch ; then
@@ -4099,8 +4099,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
@@ -4109,6 +4108,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
@@ -4860,7 +4860,7 @@
 # 20220707-PE does this improve thie linking (get pass the problem with g_module_open_full)?
 # We get checking dynamic linker characteristics... awk: symbol lookup error: /home/pemsley/autobuild/Linux-emsley-vm-fedora-2.lmb.internal-gtk4/lib/libreadline.so.8: undefined symbol: UP
 # on fedora if LD_LIBRARY_PATH is set
-if [ "$dist_name" = fedora ] ;  then
+if [ "$dist_name" = fedora -o "$dist_name" = rocky ] ;  then
     :
 else
     if [ "$dist_name" = arch ] ;  then
[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向けっぽいな

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";

最新の60件
2025-03-23 2025-03-22 2025-03-20 2025-03-17 2025-03-16 2025-03-15 2025-03-10 2025-03-08 2025-03-06 2025-03-03 2025-03-02 2025-03-01 2025-02-23 2025-02-18 2025-02-17 2025-02-14 2025-02-12 2025-02-03
  • coot/source/v1
2025-02-02 2025-01-27 2025-01-26 2025-01-25 2025-01-24 2025-01-23 2025-01-20 2025-01-13 2025-01-12 2025-01-08 2024-12-30 2024-12-29 2024-12-22 2024-12-20 2024-12-17 2024-12-15 2024-12-14 2024-12-12 2024-12-11 2024-12-10 2024-12-09 2024-11-28 2024-11-22 2024-11-15 2024-11-14 2024-11-12 2024-11-06 2024-11-05

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2025-02-03 (月) 17:50:10