SuperDARN / rst

Radar Software Toolkit (RST)
https://superdarn.github.io/rst/
GNU General Public License v3.0
22 stars 17 forks source link

install RST - Centos 8 #563

Open Aixuwu opened 1 year ago

Aixuwu commented 1 year ago

Excuse me, ask a question, See from Table of Contents-Library Requirements for installing RST, CentOs only has two versions of 6.1 and 7. How to install RST on CentOs 8?

Aixuwu commented 1 year ago

I try to install as CentOs 7 sudo yum install hdf5-devel libpng12-devel libX11-devel libXext libXext-devel netcdf netcdf-devel ncurses-devel zlib-devel, then error: no match: libpng12-devel

egthomas commented 1 year ago

@Aixuwu can you try installing libpng-devel instead of libpng12-devel ?

ecbland commented 1 year ago

I recently installed RST on CentOS 7 (and I was planning to share my notes...just juggling lots of things at the moment in my new job).

I needed to do the following to get RST to compile:

  1. Install libpng-devel instead of libpng12-devel as @egthomas suggested above
  2. Add -std=gnu99 to line 10 of $RSTPATH/build/make/makebin.linux and line 10 of $RSTPATH/build/make/makelib.linux e.g. CFLAGS+=-fPIC -std=gnu99 -Wall -pedantic -O3 -D_GNU_SOURCE -D_LINUX
  3. I could not get fitacfclientgui to compile, so as a workaround I compressed the directory $RSTPATH/codebase/superdarn/src.bin/tk/tcpip/fitacfclientgui.1.0 so that RST will skip over it. We had a similar problem with macOS (#536). It would be good to find a proper solution.
egthomas commented 1 year ago

Thanks @ecbland! For fitacfclientgui, you may also need to install ncursesw5-devel (or whatever the equivalent is on CentOS) - that was required on another recent installation I tried on an older Ubuntu version.