Uses the built-in statically linked libraries instead of trying to modify the makefile to work with Arch dependencies. See https://ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/_README.nolib for details.
Search Criteria
Package Details: wgrib2 3.1.2-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/wgrib2.git (read-only, click to copy) |
---|---|
Package Base: | wgrib2 |
Description: | Utility to read and write grib2 files |
Upstream URL: | https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/ |
Licenses: | GPL, custom, Apache |
Submitter: | graziano |
Maintainer: | zqianem |
Last Packager: | zqianem |
Votes: | 7 |
Popularity: | 0.000002 |
First Submitted: | 2006-12-01 14:08 (UTC) |
Last Updated: | 2023-06-09 13:18 (UTC) |
Dependencies (4)
- gcc-libs (gccrs-libs-git, gcc-libs-git, gcc11-libs)
- glibc (glibc-widevine, glibc-git, glibc-linux4)
- cmake (cmake-git) (make)
- gcc-fortran (gccrs-fortran-git, gcc-fortran-git, gcc11-fortran) (make)
Required by (0)
Sources (1)
zqianem commented on 2021-02-04 03:03 (UTC) (edited on 2021-02-18 01:46 (UTC) by zqianem)
sundar_ima commented on 2020-02-24 11:14 (UTC)
Never able to install this package. Found a temp solution myself as shown below:-
-
Downloaded the latest pre-compile wgrib2 binary from anaoconda repo
https://anaconda.org/conda-forge/wgrib2/files
. -
The binary expected
libjasper.so.1
andlibmysqlclient.so.18
but Arch had onlylibjasper.so
andlibmysqlclient.so
-
Made a soft link point to Arch Linux libraries as indicated below:-
sudo ln /usr/lib/libmysqlclient.so /usr/lib/libmysqlclient.so.18
andsudo ln -s /usr/lib/libjasper.so /usr/lib/libjasper.so.1
-
Executed
wgirb2
and it happily printed the list of available options. -
Hope it helps someone scratching their head for the answer.
sundar_ima commented on 2020-02-23 17:12 (UTC) (edited on 2020-02-23 17:13 (UTC) by sundar_ima)
Does not compile. Received the following error:-
In file included from wgrib2.h:8,
from AAIG.c:6:
config.h:2:1: error: stray '\' in program
2 | \#define USE_REGEX
| ^
config.h:2:2: error: stray '#' in program
2 | \#define USE_REGEX
| ^
config.h:2:3: error: unknown type name 'define'
2 | \#define USE_REGEX
| ^~~~~~
config.h:3:1: error: stray '\' in program
3 | \#define USE_TIGGE
| ^
config.h:3:2: error: stray '#' in program
3 | \#define USE_TIGGE
| ^
config.h:3:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'define'
3 | \#define USE_TIGGE
| ^~~~~~
config.h:3:3: error: unknown type name 'define'
config.h:6:1: error: stray '\' in program
6 | \#define USE_UDF
| ^
config.h:6:2: error: stray '#' in program
6 | \#define USE_UDF
| ^
config.h:7:1: error: stray '\' in program
7 | \#define IPOLATES_LIB ""
| ^
config.h:7:2: error: stray '#' in program
7 | \#define IPOLATES_LIB ""
| ^
config.h:8:1: error: stray '\' in program
8 | \#define USE_IPOLATES 1
| ^
config.h:8:2: error: stray '#' in program
8 | \#define USE_IPOLATES 1
| ^
config.h:9:1: error: stray '\' in program
9 | \#define USE_OPENMP
| ^
config.h:9:2: error: stray '#' in program
9 | \#define USE_OPENMP
| ^
config.h:10:1: error: stray '\' in program
10 | \#define USE_G2CLIB
| ^
config.h:10:2: error: stray '#' in program
10 | \#define USE_G2CLIB
| ^
config.h:11:1: error: stray '\' in program
11 | \#define USE_PROJ4
| ^
config.h:11:2: error: stray '#' in program
11 | \#define USE_PROJ4
| ^
config.h:12:1: error: stray '\' in program
12 | \#define USE_JASPER
| ^
config.h:12:2: error: stray '#' in program
12 | \#define USE_JASPER
| ^
config.h:13:1: error: stray '\' in program
13 | \#define USE_AEC "libaec-1.0.2.tar.gz"
| ^
config.h:13:2: error: stray '#' in program
13 | \#define USE_AEC "libaec-1.0.2.tar.gz"
| ^
config.h:15:1: error: stray '\' in program
15 | \#define USE_NETCDF4
| ^
config.h:15:2: error: stray '#' in program
15 | \#define USE_NETCDF4
| ^
config.h:16:1: error: stray '\' in program
16 | \#define HDF5 ""
| ^
config.h:16:2: error: stray '#' in program
16 | \#define HDF5 ""
| ^
config.h:17:1: error: stray '\' in program
17 | \#define USE_MYSQL
| ^
config.h:17:2: error: stray '#' in program
17 | \#define USE_MYSQL
| ^
config.h:18:1: error: stray '\' in program
18 | \#define CC "gcc (Arch Linux 9.2.1+20200130-2) 9.2.1 20200130"
| ^
config.h:18:2: error: stray '#' in program
18 | \#define CC "gcc (Arch Linux 9.2.1+20200130-2) 9.2.1 20200130"
| ^
config.h:19:1: error: stray '\' in program
19 | \#define FORTRAN "GNU Fortran (Arch Linux 9.2.1+20200130-2) 9.2.1 20200130"
| ^
config.h:19:2: error: stray '#' in program
19 | \#define FORTRAN "GNU Fortran (Arch Linux 9.2.1+20200130-2) 9.2.1 20200130"
| ^
config.h:20:1: error: stray '\' in program
20 | \#define BUILD_COMMENTS "stock build"
| ^
config.h:20:2: error: stray '#' in program
20 | \#define BUILD_COMMENTS "stock build"
| ^
config.h:21:1: error: stray '\' in program
21 | \#define USE_PNG
| ^
config.h:21:2: error: stray '#' in program
21 | \#define USE_PNG
| ^
config.h:22:1: error: stray '\' in program
22 | \#define WMO_VALIDATION
| ^
config.h:22:2: error: stray '#' in program
22 | \#define WMO_VALIDATION
| ^
make[1]: *** [makefile:63: AAIG.o] Error 1
make[1]: Leaving directory '/home/sundar/.cache/yay/wgrib2/src/grib2/wgrib2'
make: *** [makefile:626: wgrib2/wgrib2] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Any help to successful install is appreciated.
dovlan commented on 2019-09-13 12:55 (UTC)
Hi,
PROJ will be permanently removing proj_api.h starting from version 7. Solution is to modify wgrib2.patch file and append -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1 at line 100 and adjust md5 sum accordingly
From https://github.com/OSGeo/PROJ/issues/836:
From version 6.0.0 proj_api.h will be deprecated. proj_api.h will not be included as a public header file from PROJ 7.0.0 and onwards. We want to make that clear from version 6.0.0 by requiring that users that want to use proj_api.h #define a macro like ACCEPT_USE_OF_DEPRECATED_PROJ_API_H. If the macro is not defined a compile-time error should be raised declaring that the user is including a deprecated API.
queenmedley commented on 2019-08-15 14:40 (UTC) (edited on 2019-08-15 14:42 (UTC) by queenmedley)
During compile, it failed to proj.
The proj-6.1.0-1 is already installed on my pc.
Any idea?
In file included from Proj4.c:21:
/usr/include/proj_api.h:37:2: error: #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'
37 | #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'
| ^~~~~
make[1]: [makefile:67: Proj4.o] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-ryzen1/aur-wgrib2/src/grib2/wgrib2'
make: [makefile:569: wgrib2/wgrib2] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build wgrib2.
==> Restart building wgrib2 ? [y/N]
Pinned Comments
zqianem commented on 2021-02-04 03:03 (UTC) (edited on 2021-02-18 01:46 (UTC) by zqianem)
Uses the built-in statically linked libraries instead of trying to modify the makefile to work with Arch dependencies. See https://ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/_README.nolib for details.