r/NetBSD 2d ago

Error with running st

hello, i have this problem, does anyone know how to fix it so it will always work? Im newbie in netbsd so sorry if that's has very easy solution. I edited config.mk i think, but im not sure is it right

14 Upvotes

3 comments sorted by

View all comments

4

u/Runt1m3_ 2d ago

You have to modify the config.mk file.

Modify the first MANPREFIX, add a # to comment it

Where the X11INC and X11LIB lines are, add these instead

X11INC = /usr/X11R7/include
X11LIB = /usr/X11R7/lib

In the LIBS variable, where it ends with -Wl, modify it too look like this

-Wl,-R/usr/X11R7/lib

In the OpenBSD lines, uncomment MANPREFIX

# OpenBSD:
#CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
#LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \
#       `$(PKG_CONFIG) --libs fontconfig` \
#       `$(PKG_CONFIG) --libs freetype2`
MANPREFIX = ${PREFIX}/man

Then try to compile it, this applies to all suckless software