gempak icon indicating copy to clipboard operation
gempak copied to clipboard

cant run build_ubuntu.sh file

Open Linuxuser1234 opened this issue 2 years ago • 15 comments

when i run the ./setup.sh file i get these options

  • os_type=
  • os_version=
  • tag=
  • [ = dev ]
  • [ = centos]
  • [ = ubuntu]
  • [ = fedora] but when i select ubuntu with os_type it gives me a infinite loop i dont know what i did wrong

Linuxuser1234 avatar May 03 '22 12:05 Linuxuser1234

Did you edit and source Gemenviron first?

akrherz avatar May 03 '22 12:05 akrherz

no

Linuxuser1234 avatar May 03 '22 13:05 Linuxuser1234

@akrherz so what do i need to edit in the Gemenviron folder

Linuxuser1234 avatar May 03 '22 13:05 Linuxuser1234

Please slow the rate of your posts here and take time to look and understand things. There is no Gemenviron folder. There's a shell environment script for bash and csh/tcsh users. I suspect you are using bash, so edit Gemenviron.profile and review the various variables being set in that file.

akrherz avatar May 03 '22 13:05 akrherz

is there any setup instructions i don't think the old instructions work anymore

Linuxuser1234 avatar May 03 '22 13:05 Linuxuser1234

@akrherz ok so when i run tail -f make.out it says make: *** No rule to make target '/subdirs.mk' . Stop.

Linuxuser1234 avatar May 03 '22 17:05 Linuxuser1234

you need to edit Gemenviron.profile first and then source it into your shell's environment, and then run make. See 57 comment

akrherz avatar May 03 '22 17:05 akrherz

@akrherz i already edited the Gemenviron.profile i added the gempak directory

Linuxuser1234 avatar May 03 '22 17:05 Linuxuser1234

/home/awips/Desktop/gempak/gempak

Linuxuser1234 avatar May 03 '22 17:05 Linuxuser1234

@akrherz Screenshot 2022-05-03 140658

Linuxuser1234 avatar May 03 '22 19:05 Linuxuser1234

@akrherz Screenshot 2022-05-03 141934

Linuxuser1234 avatar May 03 '22 19:05 Linuxuser1234

@awipslinuxuser There are a couple of things that stand out to me about your install...

A few comments up you said you set NAWIPS=/home/awips/Desktop/gempak/gempak in Gemenviron.profile, but in your screenshot above you're in the ~/Desktop/GEMPAK7 directory for the gempak user. Based on this you should probably set NAWIPS=/home/gempak/Desktop/GEMPAK7 (Note: I'm not including the gempak subdirectory). You can double check the full path by running pwd while in that GEMPAK7 directory. Also make sure you source that file after you're done editing and before you proceed with the rest of the install.

This raises another question though, the /home/awips/... directory you gave suggests you're attempting to install this as another user. While I think that's possible, it would likely present some issues. It's highly recommended that you install as the gempak user, you can run gempak after install as another user so long as you source the right Gemenviron file for that user's shell.

It's also standard practice, if not required, to make a symlink to your install directory called NAWIPS; this should match the NAWIPS variable you set in Gemenviron. I'm not sure how far you'll get if you don't do this. I can't tell if you have or not, just putting it out there.

I'd recommend going through https://github.com/Unidata/gempak/issues/57#issuecomment-1066984367 and follow those procedures, I can confirm they worked start to finish on a fresh Ubuntu 20.04 LTS install.

The other thing you can try is this: https://github.com/whatheway/GEMPAK Another user made a self installer script for installing Gempak on Ubuntu in an attempt to simplify the process. I have not tested this myself, but at a glance it looks like it should work; it was based on the steps linked above.

Hope this helps.

mzuranski avatar May 03 '22 21:05 mzuranski

@akrherz when ever i get the app working and installed will i get a interface like this download (4)

Linuxuser1234 avatar May 04 '22 22:05 Linuxuser1234

That looks like nmap2, which is indeed one of the executables provided by GEMPAK.

sgdecker avatar May 05 '22 01:05 sgdecker

Hello, good afternoon, I have problems applying the command make >& make.out I don't see anything and when applying tail -f make.out make: *** /: Is a directory. Stop.

matiasmoviedo avatar May 21 '24 15:05 matiasmoviedo