Discussion:
[GRASS-user] Unable to install add-ons on fedora23
Salim Razzaz
2016-04-27 18:35:39 UTC
Permalink
Dear GRASS users, I have previously had GRASS 70 compiled from sourcecode and was able to install add-ons with g.extension. Few days ago I discovered the rpm of GRASS 7.0.3 so I removed the compiled one and installed the rpm instead with grass-devel, liblas, and liblas-devel. Now I'm trying to install an add-on but this is happening:

g.extension extension=r.vol.dem --verbose
Fetching <r.vol.dem> from GRASS-Addons SVN repository (be patient)...
A r.vol.dem/main.c
A r.vol.dem/r_vol_dem_layerup.jpg
A r.vol.dem/r.vol.dem.html
A r.vol.dem/chull.c
A r.vol.dem/globals.h
A r.vol.dem/r_vol_dem_layerdown.jpg
A r.vol.dem/macros.h
A r.vol.dem/Makefile
A r.vol.dem/chull.h
U r.vol.dem
Checked out revision 68319.
Compiling...
ERROR: Please install GRASS development package

As I'm pretty new in both grass and fedora I'm not really sure what do here. grass-devel is surely installed but somehow it is not recognized when running the command.
Any help is appreciated.
Thanks

Salim Razzaz
Vaclav Petras
2016-04-27 23:21:07 UTC
Permalink
Post by Salim Razzaz
the compiled one and installed the rpm instead with grass-devel, liblas,
g.extension extension=r.vol.dem --verbose
Fetching <r.vol.dem> from GRASS-Addons SVN repository (be patient)...
...
Compiling...
Post by Salim Razzaz
ERROR: Please install GRASS development package
If you have the GRASS development package installed, you can try to debug
the issue by using -d flag (Download source code and exit). This will give
you directory with the source code and a command to compile. Try also other
addons.
Salim Razzaz
2016-04-28 10:03:14 UTC
Permalink
Post by Salim Razzaz
Post by Salim Razzaz
the compiled one and installed the rpm instead with grass-devel, liblas,
g.extension extension=r.vol.dem --verbose
Fetching <r.vol.dem> from GRASS-Addons SVN repository (be patient)...
...
Compiling...
Post by Salim Razzaz
ERROR: Please install GRASS development package
If you have the GRASS development package installed, you can try to debug
the issue by using -d flag (Download source code and exit). This will give
you directory with the source code and a command to compile. Try also other
addons.
Thank you for your answer. I did what you suggested and downloaded the addon (I even tried with a different add-on 'd.vect.thematic2'), but when running the command to compile the source code I got:

Makefile:5: /usr/lib64/grass-7.0.3/include/Make/Script.make: No such file or directory
make: *** No rule to make target '/usr/lib64/grass-7.0.3/include/Make/Script.make'. Stop.

There isn't any directory called 'include' in /usr/lib64/grass-7.0.3/ when I checked. And grass-devel is installed (I ran 'dnf list installed grass-devel' and it is there)
I guess I'll revert back to a compiled GRASS
Martin Landa
2016-04-28 11:52:31 UTC
Permalink
Hi,
Post by Salim Razzaz
There isn't any directory called 'include' in /usr/lib64/grass-7.0.3/ when I checked. And grass-devel is installed (I ran 'dnf list installed grass-devel' and it is there)
it sounds like broken packaging on Fedora. What is content of
grass-devel package?

Na
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
Markus Neteler
2016-04-28 12:15:59 UTC
Permalink
Post by Martin Landa
Hi,
Post by Salim Razzaz
There isn't any directory called 'include' in /usr/lib64/grass-7.0.3/ when I checked. And grass-devel is installed (I ran 'dnf list installed grass-devel' and it is there)
it sounds like broken packaging on Fedora.
Yes, confirmed. I'm on Fedora, too.
Post by Martin Landa
What is content of grass-devel package?
rpm -qf /usr/include/grass/vector.h
grass-devel-7.0.3-2.fc23.x86_64

So, it is
/usr/include/grass/ ...

But the needed /usr/include/grass/Make/ is missing anyway. I'll open a
ticket with Fedora.

Markus
Markus Neteler
2016-04-28 12:27:58 UTC
Permalink
On Thu, Apr 28, 2016 at 2:15 PM, Markus Neteler <***@osgeo.org> wrote:
...
Post by Markus Neteler
But the needed /usr/include/grass/Make/ is missing anyway. I'll open a
ticket with Fedora.
Done:
https://bugzilla.redhat.com/show_bug.cgi?id=1331386

Markus
--
Markus Neteler
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog
Salim Razzaz
2016-04-29 09:50:06 UTC
Permalink
Post by Martin Landa
Post by Salim Razzaz
There isn't any directory called 'include' in /usr/lib64/grass-7.0.3/ when I checked. And grass-devel is installed (I ran 'dnf list installed grass-devel' and it is there)
it sounds like broken packaging on Fedora. What is content of
grass-devel package?
usr/include/grass/defs/
usr/include/grass/dgl/
usr/include/grass/iostream/
usr/include/grass/vect/
usr/include/grass/ #headers

usr/lib64/pkgconfig/
usr/lib64/ #libgrass_ .so (51)

usr/share/doc/grass-devel/doc/
usr/share/doc/grass-devel/SUBMITTING
usr/share/doc/grass-devel/TODO

So yeah. Make went missing like Markus said. It exists in the __src.rpm though. and it shows in BUILD after packaging. So I guess it's the spec file. I'm a newbie, but a curious one. So I'll try to find the culprit piece and report back if anything shows up (doubt it though, considering my skills).

Thank you all

S
Markus Neteler
2016-04-29 10:39:46 UTC
Permalink
On Fri, Apr 29, 2016 at 11:50 AM, Salim Razzaz <***@gmail.com> wrote:
...
Post by Salim Razzaz
So yeah. Make went missing like Markus said. It exists in the __src.rpm though. and
it shows in BUILD after packaging. So I guess it's the spec file. I'm a newbie, but a
curious one.
Great :-)
Here is the officia Fedora SPEC file:

GRASS SPEC file spec: http://pkgs.fedoraproject.org/cgit/rpms/grass.git/
--> http://pkgs.fedoraproject.org/cgit/rpms/grass.git/tree/grass.spec
Post by Salim Razzaz
So I'll try to find the culprit piece and report back if anything shows up
(doubt it though, considering my skills).
... I will be happy to generate a RPM from your updated SPEC file then.

Markus
Laurent C.
2017-11-29 19:19:52 UTC
Permalink
Hello all,

I have a similar problem with Fedora 27:

$ grass72 --config path
ERROR: Please install the GRASS GIS development package
Exiting...
$ dnf list installed *grass-devel*
Installed Packages
grass-devel.x86_64 7.2.1-2.fc27 @fedora

I believe it is a packaging error, but I don't know what is missing.

Any thought?

Regards,
Laurent
Post by Markus Neteler
...
Post by Salim Razzaz
So yeah. Make went missing like Markus said. It exists in the __src.rpm though. and
it shows in BUILD after packaging. So I guess it's the spec file. I'm a newbie, but a
curious one.
Great :-)
GRASS SPEC file spec: http://pkgs.fedoraproject.org/cgit/rpms/grass.git/
--> http://pkgs.fedoraproject.org/cgit/rpms/grass.git/tree/grass.spec
Post by Salim Razzaz
So I'll try to find the culprit piece and report back if anything shows up
(doubt it though, considering my skills).
... I will be happy to generate a RPM from your updated SPEC file then.
Markus
_______________________________________________
grass-user mailing list
http://lists.osgeo.org/mailman/listinfo/grass-user
Markus Neteler
2017-11-29 20:31:09 UTC
Permalink
Post by Laurent C.
Hello all,
$ grass72 --config path
ERROR: Please install the GRASS GIS development package
Exiting...
$ dnf list installed *grass-devel*
Installed Packages
I believe it is a packaging error,
Yes.
Post by Laurent C.
but I don't know what is missing.
Any thought?
Missing from the grass-devel RPM is the "include/" directory. This
contains the information needed by g.extension.

See
https://bugzilla.redhat.com/show_bug.cgi?id=1489158

I would need some support to get the SPEC file right.
Anyone?

thanks
Markus
Laura Poggio
2017-12-15 09:04:29 UTC
Permalink
Dear all,
I am having the same problem also with the F27 package from
coprs/neteler/grass72/.
But I am not sure it is the same problem or I am doing something wrong.
I removed grass from fedora repository, enabled the copr repository and
then installed grass again from the new repository.

Thanks
Laura
Post by Laurent C.
Post by Laurent C.
Hello all,
$ grass72 --config path
ERROR: Please install the GRASS GIS development package
Exiting...
$ dnf list installed *grass-devel*
Installed Packages
grass-devel.x86_64 7.2.1-2.fc27
@fedora
Post by Laurent C.
I believe it is a packaging error,
Yes.
Post by Laurent C.
but I don't know what is missing.
Any thought?
Missing from the grass-devel RPM is the "include/" directory. This
contains the information needed by g.extension.
See
https://bugzilla.redhat.com/show_bug.cgi?id=1489158
I would need some support to get the SPEC file right.
Anyone?
thanks
Markus
_______________________________________________
grass-user mailing list
https://lists.osgeo.org/mailman/listinfo/grass-user
Markus Neteler
2017-12-15 13:37:30 UTC
Permalink
Post by Laura Poggio
Dear all,
I am having the same problem also with the F27 package from
coprs/neteler/grass72/. But I am not sure it is the same problem or I am
doing something wrong.
I removed grass from fedora repository, enabled the copr repository and then
installed grass again from the new repository.
There is still a bug in the SPEC file defining how the RPM package is
generated. It is missing to add the include/ directory into the
grass-devel package. See also
https://bugzilla.redhat.com/show_bug.cgi?id=1489158

I would need some support to get the SPEC file right.
Anyone?

thanks
Markus
Markus Metz
2018-01-15 20:28:38 UTC
Permalink
Post by Markus Neteler
Post by Laura Poggio
Dear all,
I am having the same problem also with the F27 package from
coprs/neteler/grass72/. But I am not sure it is the same problem or I am
doing something wrong.
I removed grass from fedora repository, enabled the copr repository and then
installed grass again from the new repository.
There is still a bug in the SPEC file defining how the RPM package is
generated. It is missing to add the include/ directory into the
grass-devel package. See also
https://bugzilla.redhat.com/show_bug.cgi?id=1489158
I would need some support to get the SPEC file right.
Anyone?
I have added a working grass.spec file to trunk r72082. It works fine with
Fedora 28 and GRASS 7.4.0 (yes, none of the two is already released).
Installing addons with g.extension as standard user works now, granted that
grass-devel is installed.

The main change is that GRASS is installed into one single folder, the same
as before, but now all required components are actually in this single
folder and not moved away to different locations. Man pages and docs are in
the system's standard locations and available without starting GRASS.

Further on, the demolocation is now included in the standard installation,
and the gui is a separate package.

@MarkusN: can you test the new spec file (trunk/rpm/grass.spec) with your
copr system? Thanks!

Markus M
Markus Neteler
2018-01-15 22:35:30 UTC
Permalink
On Mon, Jan 15, 2018 at 9:28 PM, Markus Metz
<***@gmail.com> wrote:
...
Post by Markus Metz
I have added a working grass.spec file to trunk r72082. It works fine with
Fedora 28 and GRASS 7.4.0 (yes, none of the two is already released).
Installing addons with g.extension as standard user works now, granted that
grass-devel is installed.
The main change is that GRASS is installed into one single folder, the same
as before, but now all required components are actually in this single
folder and not moved away to different locations. Man pages and docs are in
the system's standard locations and available without starting GRASS.
Further on, the demolocation is now included in the standard installation,
and the gui is a separate package.
Nice!
Post by Markus Metz
@MarkusN: can you test the new spec file (trunk/rpm/grass.spec) with your
copr system? Thanks!
Sure:
https://copr.fedorainfracloud.org/coprs/neteler/grass74/
Please test!

markusN


PS: I had to fix this:

@@ -158,7 +158,7 @@
--with-netcdf=%{_bindir}/nc-config \
%endif
--with-mysql-includes=%{_includedir}/mysql \
- --with-mysql-libs=%{_libdir} \
+ --with-mysql-libs=%{_libdir}/mysql \
%if (0%{?rhel} > 6 || 0%{?fedora})
--with-postgres-includes=%{_includedir}/pgsql \
%else

otherwise it would not find mysql...
Markus Neteler
2018-01-16 13:41:06 UTC
Permalink
Post by Markus Neteler
On Mon, Jan 15, 2018 at 9:28 PM, Markus Metz
...
Post by Markus Neteler
Post by Markus Metz
@MarkusN: can you test the new spec file (trunk/rpm/grass.spec) with your
copr system? Thanks!
https://copr.fedorainfracloud.org/coprs/neteler/grass74/
Please test!
To test it myself, I made a test run in docker using the latest Fedora
(i.e., F27).
Here posted, in case anyone would like to try as well.

# Test GRASS GIS on latest Fedora using docker
sudo docker run -it --rm --name myfedora fedora /bin/bash
dnf install 'dnf-command(copr)' -y
dnf copr enable neteler/grass74 -y
dnf update -y

# see which RPMs are offered:
dnf search grass | sort

# install GRASS GIS 7.4.0RC2
dnf install grass grass-libs grass-gui liblas -y

# install prerequisites for g.extension
dnf install grass-devel gcc redhat-rpm-config -y

# test run
grass74 /usr/lib64/grass-7.4.0RC2/demolocation/PERMANENT/
g.extension r.area

# [more tests...]

Seems to work fine. I'm very happy that g.extension finally works in
Fedora (time to push the new SPEC file to the core system).

best, markusN
--
Markus Neteler, PhD
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog
Loading...