1: **This page should use cross references to avoid duplicate content. Please help us by cleaning it up. ?**
5: [[!toc levels=2]]
11: [pkgsrc guide](http://www.netbsd.org/docs/pkgsrc/)
13: #Software requirements
15: Before you can use pkgsrc, you may need a few packages installed on your Linux system upfront.
17: * gcc (and libstdc++)
18: * libncurses-devel
19: * zlib and zlib-devel
20: * openssl-devel (optional but required for some packages)
21: * libudev-dev (optional but required for some packages)
23: The names may vary, depending on what Linux distribution you are using. Also be mindful of the platform you are using (eg. i686 vs. x86_64 - some have different pre-required packages). Also note that some very basic tools such as file, patch, sed, and others are required, as well.
25: #Troubleshooting bootstrap
26: ##Shell's echo command is not BSD-compatible
28: If you see this error
30: ERROR: Your shell's echo command is not BSD-compatible.
32: This error is known to occur if /bin/sh is linked to /bin/dash (recent Ubuntu versions).
34: The fix is to issue the following before commencing bootstrap: export SH=/bin/bash
35: ##ARG_MAX undeclared
37: If bootstrap stops at
39: In file included from glob.c:12:
40: __glob13.c: In function globextend:
41: __glob13.c:836: error: ARG_MAX undeclared (first use in this function)
43: Then apply this patch (http://mail-index.netbsd.org/pkgsrc-bugs/2008/06/21/msg026977.html)
46: If bootstrap stops at
48: /usr/pkgsrc/bootstrap/work/bmake/arch.c: In function 'Arch_Touch':
49: /usr/pkgsrc/bootstrap/work/bmake/arch.c:1038: warning: ignoring return
50: value of 'fwrite', declared with attribute warn_unused_result
51: *** Error code 1
53: This error occurs because Linux uses -DFORTIFY_SOURCES by default. Bootstrap can be achieved by:
55: CFLAGS="-U_FORTIFY_SOURCE" ./bootstrap
57: ##libncurses not installed
59: If bootstrap stops at
61: ERROR: This package has set PKG_FAIL_REASON:
62: ERROR: No usable termcap library found on the system.
64: Then install the libncurses-dev package
66: On an RPM based system this might be via 'yum install ncurses-devel', and on a Debian/Ubuntu system 'apt-get install libncurses5-dev'
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb