You are not logged in.

#1 2019-02-23 02:00:29

jjuel
Member
Registered: 2019-02-23
Posts: 2

Error When Building Surf Browser

I get this error message when I run make trying to build Surf browser from source:

surf build options:
CC            = c99
Package gcr-3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gcr-3.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gcr-3', required by 'virtual:world', not found
CFLAGS        =   -DVERSION="2.0" -DWEBEXTDIR="/usr/local/lib/surf"  -D_DEFAULT_SOURCE -DGCR_API_SUBJECT_TO_CHANGE -fPIC -O
WEBEXTCFLAGS  = -fPIC -I/usr/include/webkitgtk-4.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/lib/libffi-3.2.1/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -pthread  -O
LDFLAGS       =
c99 `pkg-config --cflags x11` `pkg-config --cflags gtk+-3.0 gcr-3 webkit2gtk-4.0` -DVERSION=\"2.0\" -DWEBEXTDIR=\"/usr/local/lib/surf\"  -D_DEFAULT_SOURCE -DGCR_API_SUBJECT_TO_CHANGE -fPIC -O -c surf.c
Package gcr-3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gcr-3.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gcr-3', required by 'virtual:world', not found
surf.c:8:10: fatal error: glib.h: No such file or directory
 #include <glib.h>
          ^~~~~~~~
compilation terminated.
make: *** [Makefile:24: surf.o] Error 1

Does any one have any ideas what I need to get this to work? I am assuming I am missing some package, but I cannot figure out what it is after searching quite a bit. Any help would be greatly appreciated.

Last edited by jjuel (2019-02-23 13:02:31)

Offline

#2 2019-02-23 02:12:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,443
Website

Re: Error When Building Surf Browser

jjuel wrote:

Package gcr-3 was not found in the pkg-config search path.
...
I am assuming I am missing some package, but I cannot figure out what it is after searching quite a bit.

Here's a wild guess: could it be gcr version 3.

Why are you not using surf from the repos?  Or at least starting with the PKGBUILD from the repos?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-02-23 02:35:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Error When Building Surf Browser

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2019-02-23 13:08:27

jjuel
Member
Registered: 2019-02-23
Posts: 2

Re: Error When Building Surf Browser

Trilby wrote:

Here's a wild guess: could it be gcr version 3.

Why are you not using surf from the repos?  Or at least starting with the PKGBUILD from the repos?

Yeah turns out I am an idiot. I was searching pacman for gcr-3 when I should have just been searching for gcr. Installed that and it worked.

Thanks for the help.

Offline

#5 2019-02-23 14:20:46

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Error When Building Surf Browser

Trilby wrote:

Why are you not using surf from the repos?  Or at least starting with the PKGBUILD from the repos?

Offline

#6 2019-02-23 14:33:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,443
Website

Re: Error When Building Surf Browser

And FYI, looking specifically for the file the error mentioned would have also led to the same result:

$ pacman -Fs gcr-3.pc
extra/gcr 3.28.1-1
    usr/lib/pkgconfig/gcr-3.pc

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB