-
Notifications
You must be signed in to change notification settings - Fork 16
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
RST version 5 installation errors #588
Comments
@Yas979 thanks for the message. Have you been able to install previous versions of the RST? Could you copy all of the output text from |
@egthomas thanks for the reply. Please find attached a .txt file with a copy of the terminal output after running make.build Many thanks |
@Yas979 thanks for sharing the Line 62 in 7345420
or you could simply remove (or tar) the entire After making one of those two changes, could you try |
Thanks. I commented out lines 62 and 63 from make.build and it completed. Please can I also ask for help with the error message after running make.code? I have attached the terminal output. |
@Yas979 sorry, I didn't mean to comment out all of lines 62-63 from
|
Thanks. I have made the changes to make.build and then rerun make.code, which produces the same error as before - contour.c:29:19: fatal error: rmath.h: No such file or directory |
@Yas979 it doesn't look like
which is where that Can you confirm these lines are at the beginning of the
|
Hi, yes build.txt contains the same lines. Regards |
@Yas979 unfortunately I'm not sure what the issue might be at this point. It seems like you previously made some custom edits to the build code - would it be possible to create a fresh clone / download of RST 5.0 and try recompiling with just the |
Sure thing. I will give that a try. Thanks |
@egthomas Hi, after a fresh clone of RST 5.0, make.build completed when sdoc was removed. Upon running make.code, gave the following error message: /data/sol-ionosphere/SuperDARN-rst-5.0_test/build/script/make.code: line 90: makeall: command not found Thanks |
Hi @egthomas, Please can I check what I can do next? Thanks |
@Yas979 Do you mind sharing the terminal output of your most recent attempts to run |
Hi @egthomas, Thanks for getting back. Please find the terminal output from make.build uploaded here. I have also been attempting to install RST v4.2 and understand make.build ends prematurely in the case of RST v5.0 |
@Yas979 thanks for sharing the terminal output. Did you fully remove (or maybe rename) the
From your terminal output, it looks like |
Hi @egthomas, I only made the above amendment to the make.build file. and ls codebase/base/src.bin/xmldoc/scdoc.1.4/ found the following: Thanks |
Hi @egthomas I hope you are well. I have been looking into the make.build errors a bit more and have found that codebase/base/src.bin/xmldoc/scdoc.1.4/scdoc.c and codebase/base/src.bin/build/makeall.1.22/makeall.c both stop executing after reaching the same following code in either scdoc.c or makeall.c : What I have noticed is both: Include the syntax - ^M, which is not included in the equivalent files after running make.build for RST 4.2 Despite removing this syntax, after running make.build for RST 5.0, the same error occurs and find the syntax ^M has been reinstated into the hlpstr.h files. I had thought make.help, was rewriting the hlpstr.h files with this syntax, however I am not sure why this is the case as make.help is exactly the same in version 4.2 and 5.0. I have also commented out most of make.help, in order to not overwrite the edited hlpstr.h files. However, another code is deleting the hlpstr.h files, resulting in make.build not able to find the hlpstr.h file. Unfortunately, I am unable to find the code that is deleting the hlpstr.h files. Thanks |
@Yas979 sorry, I'm not quite sure what else to suggest - I'm wondering if this is an OS-specific issue, as I have never encountered it when compiling the RST on any Ubuntu versions up through 22.04. When I search through the files in the Also, did I read your previous comment correctly that you are unable to install RST 4.2 either? Or does that version compile correctly? |
Hi @egthomas, I'm not sure why ^M is being added to the hlpstr.h files, as seems the code is exactly the same as for RST 4.2. However, in the case of RST 5,0, I ran the command dos2unix on all the make files in the /build/script/ directory, as after first downloading the RST 5.0, the make command could not be found after typing into the command line. Only after running the dos2unix on the make files, could I run make.build and make.code etc. make.code got a little further once I deleted codebase/base/src.bin/xmldoc/scdoc.1.4/doc/scdoc.doc.xml, codebase/base/src.bin/build/makeall.1.22/doc/makeall.doc.xml and codebase/base/src.bin/graphic/padpng.1.2/doc/padpng.doc.xml. However, was then left with the following error message: I also tried to install RST 4.2, but make.code did not complete successfully and resulted in the error: Unfortunately, I am not sure what can be done to complete the install of RST 4.2, as I am unable to edit the bugs in idl_export.h, which is a read only file. I have since tried to install RST 5.0 on another computer using "Rocky Linux 9.2 (Blue Onyx)", and was able to run make.build and make.code without needing to use dos2unix first. This makes me believe the above bugs installing RST 5.0 on the computer with "CentOS Linux 7", was a Linux version issue. Unfortunately, the latest attempt to install RST 5.0 on an "Rocky Linux 9.2 (Blue Onyx)" OS resulted in the following error: I believe this could be a result of not having all the Linux dependencies installed on the "Rocky Linux 9.2 (Blue Onyx)" OS, and raised another github issue on this (Required dependencies for Rocky Linux 9.2 (Blue Onyx) #590 Thanks, |
@Yas979 if you've made it that far with the Rocky Linux 9.2 OS then you may just need to install the netcdf dependencies through your package manager, ie something like netcdf or netcdf-dev or libnetcdf, etc. https://radar-software-toolkit-rst.readthedocs.io/en/latest/user_guide/linux_install/#fedora |
@egthomas I hope all is well. Apologies to reopen this case, as after making more progress on installing RST 5.0 on the Rocky Linux 9.2 OS, the install now aborts with the following error: make.help This is despite loading the latest version of ncurses and confirming the ncurses path (/cm/shared/spack/opt/spack/linux-rocky9-x86_64_v3/gcc-12.3.0/ncurses-6.4-se73dbchzjbh4qinlvrk233hol7z6ezu/bin) is included in the .profile.bash. Please can I ask what you might advise to successfully complete the installation of RTS 5.0? Thanks |
@Yas979 Glad to hear you have made some progress with the RST installation. Have you tried installing Ultimately the |
@egthomas Thanks so much. I have been able to complete make.code after zipping up fitacfclientgui and then deleting the directory. ncurses-compat-libs has not been installed so far. Thanks |
@egthomas I hope all is well. I have been told we have ncurses-compat-libs (in /usr/lib64/) and that tinfo is contained as part of the package. However, I am still getting the same compilation error as before even after adding the ncurses-compat-libs path "/usr/lib64/" to "export PATH" in .profile.bash. Please can I ask if there is anything else I could try to complete the RST install inclusive of fitacfclientgui? Best |
@Yas979 unfortunately I don't can't offer any concrete suggestions since I don't have experience with that Linux distribution. You may try reading through the discussion about curses in this issue and see if any of those suggestions are relevant: Is there a particular radar for which you need to use the |
@Yas979 I'm experiencing the same thing - even though I confirmed that ncurses and tinfo are in /usr/lib64/ and that that's part of my path, it still won't compile. Did you find a fix for this, or just end up deleting /codebase/superdarn/src.bin/tk/topip/fitacfclientgui.1.0? Also @egthomas, what's the purpose of zipping / tarring the directory and then compiling rather than just deleting it? |
@JWiker sorry to hear you're encountering issues compiling |
Question
Dear SuperDARN RST team, please can I request assistance on make.build and make.code errors when installing RST version 5.0. Thanks
Category
Details
I have been encountering issues when attempting to install RST version 5.
1st - Issue - upon running make.build the following errors were encountered:
"In file included from scdoc.c:40:0:
hlpstr.h:30:1: warning: missing terminating " character [enabled by default]
\n",help\tprint the help message and exit.
hlpstr.h:30:1: error: missing terminating " character
hlpstr.h:31:1: error: stray ‘\’ in program
\n",ble\tfilename of the file containing the table of search and replace terms.
hlpstr.h:31:3: warning: missing terminating " character [enabled by default]
\n",ble\tfilename of the file containing the table of search and replace terms.
hlpstr.h:31:1: error: missing terminating " character
\n",ble\tfilename of the file containing the table of search and replace terms.
hlpstr.h:32:1: warning: missing terminating " character [enabled by default]
"script\toutline text script.\n",
hlpstr.h:32:1: error: missing terminating " character
hlpstr.h:33:1: error: stray ‘\’ in program
hlpstr.h:31:2: error: ‘n’ undeclared here (not in a function)
\n",ble\tfilename of the file containing the table of search and replace terms.
hlpstr.h:33:2: error: expected ‘}’ before ‘n’
hlpstr.h:33:3: warning: missing terminating " character [enabled by default]
hlpstr.h:33:2: error: missing terminating " character
make: *** [scdoc.o] Error 1"
On first attempt after this, running make.code resulted in the following error:
“/build/script/make.code: line 90: makeall: command not found”
After copying missing files from RST version 4.2 ./codebase/base/src.bin/build/makeall.1.22/
errstr.h
hlpstr.h
makeall.o
version.h
Then copying makeall executable to ./build/script/ - running make.code resulted in the following error:
"contour.c:29:19: fatal error: rmath.h: No such file or directory
#include "rmath.h"
^
compilation terminated.
make: *** [contour.o] Error 1
Compilation Aborted."
Example
If applicable, fill in one of the following.
Code
please provide any pseudocode/code and output that relates to the question.
Installation Process
Followed steps on https://radar-software-toolkit-rst.readthedocs.io/en/latest/user_guide/linux_install/
As a result of first attempt not compiling IDL library followed troubleshooting steps from above website:
tar -P -czvf idl.tar.gz idl
rm -rf idl
cd $RSTPATH/build/script
make.code
After getting the error:
“/build/script/make.code: line 90: makeall: command not found”
I copied missing files from RST version 4.2 ./codebase/base/src.bin/build/makeall.1.22/
errstr.h
hlpstr.h
makeall.o
version.h
into version 5.0 ./codebase/base/src.bin/build/makeall.1.22/
I then compiled makeall.c into an executable:
gcc makeall.c –o makeall
I then moved makeall to ./build/script and ran command:
make.code
Include your Operating System.
Linux CentOS-7
Documentation
Please link to any documentation or other sources of information.
The text was updated successfully, but these errors were encountered: