Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AFNI make for RHEL9 error! #576

Open
roohy466 opened this issue Mar 1, 2024 · 1 comment
Open

AFNI make for RHEL9 error! #576

roohy466 opened this issue Mar 1, 2024 · 1 comment

Comments

@roohy466
Copy link

roohy466 commented Mar 1, 2024

OK! I have used binary and I solved all missing libraries and seems AFNI works now! but if someone wants to compile from source that might be an issue!
I am trying to build AFNI for RHEL9 and I get an error not finding Xdbe.h which it does not exist in X11 extension folder in RHEL9, but when I add the library it gives another error!
Is it a right way to compile or I am missing something here?

   build_afni.py -build_root ~/afni_build     -git_branch master  -package linux_centos_7_64

    -- current AFNI: AFNI_24.0.09, linux_centos_7_64, Feb 28 2024
    -- cleaning old build root dir, /root/afni_build
    -- backing up dir build_src
    -- preparing build_root dir, /root/afni_build
    -- have default git tag LAST_TAG, will checkout AFNI_24.0.09
    -- checking out git tag AFNI_24.0.09
    -- using repo branch (detached), tag AFNI_24.0.09
    -- removing old atlas dir, prev/afni_atlases_dist
    -- moving old atlas dir afni_atlases_dist to prev/afni_atlases_dist
    -- downloading AFNI atlas package, afni_atlases_dist.tgz
    -- unpacking atlas package, afni_atlases_dist
    -- removing old NiiVue backup, prev/niivue_afni.umd.js
    -- moving old niivue niivue_afni.umd.js to prev/niivue_afni.umd.js
    -- downloading NiiVue, niivue_afni.umd.js
    
    -- preparing to run 'make' build of package linux_centos_7_64
    -- copying README files
    -- copying Makefile.linux_centos_7_64 to Makefile
    -- building make target 'itall'
    
    -- consider monitoring the build in a separate window with:
           cd /root
           tail -f /root/afni_build/build_src/log_make.txt
           # use ctrl-c to terminate 'tail' command (not the build)
    ++ building (please be patient)...
    ** error: failed run_cmd: make AFNI_WHOMADEIT=build itall >& log_make.txt
    -- status: building FAILURE
       see 'make' log file /root/afni_build/build_src/log_make.txt
    ** error: tail from log_make.txt:
       --------------------------------------------------
       /bin/rm -f mri_drawing.o
       /usr/bin/gcc -O2 -m64 -fPIC -DREAD_WRITE_64 -DLINUX2 -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE  -DDONT_USE_XTDESTROY -D_GNU_SOURCE -DREPLACE_XT -c mri_drawing.c -I. -I/usr/include -Icoxplot -Inifti/nifti2 -Inifti/niftilib -Inifti/nifticdf -Inifti/znzlib -I3DEdge/src -Irickr -Ileej3 -DHAVE_ZLIB -DHAVE_GIFTI  -If2c
       /bin/rm -f mri_coxplot.o
       /usr/bin/gcc -O2 -m64 -fPIC -DREAD_WRITE_64 -DLINUX2 -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE  -DDONT_USE_XTDESTROY -D_GNU_SOURCE -DREPLACE_XT -c mri_coxplot.c -I. -I/usr/include -Icoxplot -Inifti/nifti2 -Inifti/niftilib -Inifti/nifticdf -Inifti/znzlib -I3DEdge/src -Irickr -Ileej3 -DHAVE_ZLIB -DHAVE_GIFTI  -If2c
       In file included from mri_coxplot.c:2:
       coxplot/coxplot.h:19:12: fatal error: X11/extensions/Xdbe.h: No such file or directory
       19 | #  include <X11/extensions/Xdbe.h>
       |            ^~~~~~~~~~~~~~~~~~~~~~~
       compilation terminated.
       make: *** [Makefile.INCLUDE:1784: mri_coxplot.o] Error 1
       --------------------------------------------------
    
    
    -- shell/system command history is in:
          /root/afni_build/hist_commands.txt
    
    ++ screen text history is in:
          /root/afni_build/hist_messages.txt
@roohy466 roohy466 closed this as completed Mar 1, 2024
@afni-rickr
Copy link
Contributor

You might need to install libXext-devel to get that file. I do not have a test machine for that though.

@afni-rickr afni-rickr reopened this Mar 1, 2024
@roohy466 roohy466 changed the title AFNI make for RHLE9 error! AFNI make for RHEL9 error! Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants