Skip to main content
Share Your Experience: Take the 2024 Developer Survey
8 votes
Accepted

You have security/openssl installed but do not have DEFAULT_VERSIONS+=ssl=openssl set in your make.conf

Just run echo 'DEFAULT_VERSIONS+=ssl=openssl' >> /etc/make.conf (as root) if you really have installed security/openssl. For users of an other port than security/openssl: for security/openssl-...
julp's user avatar
  • 276
6 votes
Accepted

Turn DOCS, NLS, and EXAMPLES options off by default for all FreeBSD ports

You can use make.conf. See an old announce: The following variables can be used in make.conf to configure options. They are processed in the order listed below, i.e. later variables override the ...
uzsolt's user avatar
  • 1,927
4 votes
Accepted

How does FreeBSD track files installed via ports?

Using make install in the ports collection registers the package to the FreeBSD package system (by creating a temporary package manifest from the port and running pkg register). From this the pkg ...
StefanR's user avatar
  • 1,392
4 votes
Accepted

OpenBSD: Where to seek for the source of programs in the base system?

The source code for the OpenBSD base system and the utilities that it contains is available through CVS. How you fetch the source code is described in the OpenBSD FAQ, under the section Building ...
Kusalananda's user avatar
  • 337k
4 votes

FreeBSD ports: want to recompile everything, a few packages fail because "uninstall error" / "already installed"

pkg autoremove doesn't do what you think it does. pkg autoremove is used for removing orphan packages, which were installed during dependency resolution and are no longer needed. What you should do ...
Rob's user avatar
  • 1,804
3 votes

Install pkg for FreeBSD 10

FreeBSD 10 has been out of support for four years, so there is no guarantee any packages are offered. Exactly what happens here: not even a package list is available anymore. I can't really judge the ...
Marcus Müller's user avatar
3 votes

How can I use cloud-init NoCloud with OPNsense 21?

I'm working on expanding cloud-init support to BSDs*. The errors should be fixed by now since at least https://github.com/canonical/cloud-init/pull/1779 And by now, Vultr is fairly well supported. If ...
Mina Galić's user avatar
3 votes

Using FreeBSD Ports & Packages, Installing Tomcat on FreeBSD 12 installs Java 8 rather than my already-installed Java 12

When pre-built binary packages don't meed your needs, it pays to consider ways to build what you need from source via FreeBSD's extensive ports system. Some FreeBSD ports support a make config target ...
Jim L.'s user avatar
  • 8,102
2 votes
Accepted

Cannot get ccache to work with ports in FreeBSD

This question was asked in early 2013. In October of that year, instructions for properly using ccache with ports were added to ccache-howto-freebsd.txt. In the years since then, both ccache and the ...
Mike Brown's user avatar
2 votes
Accepted

FreeBSD ports collection under PC-BSD?

Yes, for PC-BSD you can install programs using the Appcafe, packages or ports. They MAY conflict. I exclusively use packages (or ports) and avoid the Appcafe at all costs. I don't remember why, just ...
Ryan McGaughy's user avatar
2 votes
Accepted

Installing Java on FreeBSD: `sudo pkg install openjdk11-11.0.4+11.1` fails to find package despite being listed in the "FreeBSD Ports Search" page

tl;dr Use the short general name of the project openjdk11, not the long specific package name openjdk11-11.0.4+11.1. $ sudo pkg install openjdk11 Use short name of project Click that link you ...
Basil Bourque's user avatar
2 votes

Install only a portion of the Ports tree in FreeBSD

While installing from pkg is probably what you really want, it is possible to work with a partial ports tree (In the old CVSup days it was even possible to download only certain categories) You ...
arved's user avatar
  • 1,112
2 votes
Accepted

FreeBSD: How do I install port which doesn't show in searches?

What you see on bugs is conversation regarding updating to unifi6. It's not available in ports right now but, since the PR was only filed six days ago, it looks like someone is very, very close to ...
Rob's user avatar
  • 1,804
2 votes
Accepted

Change ports mirror in FreeBSD

This was due to a temporary server issues that should be fixed now, please try again.
Steve Wills's user avatar
  • 1,595
2 votes

/usr/ports in OpenBSD

The full paragraph reads: The ports tree is meant for advanced users. Everyone is encouraged to use the pre-compiled binary packages. If you have questions about the ports tree, it is assumed that ...
Kusalananda's user avatar
  • 337k
2 votes
Accepted

MySQL 5.5 Upgrade Issue

Several possibilities. My first suggestion would be to just go with versions installed from packages; replacing your currently installed ones - this includes both readline and MySQL. But if you ...
Edward Tomasz Napierala's user avatar
1 vote

Install pkg for FreeBSD 10

Newer ports tree will not work. You need a ports tree compatible with FreeBSD 10 to build your "pkg" EOL was 5 Years ago, but you can still fetch and test it. See: https://cgit.freebsd.org/...
dinoex's user avatar
  • 26
1 vote

/usr/ports in OpenBSD

Kusalananda's answer is sufficient, but I'd just like to add a couple of things. Porting software to a given OS usually requires patching its source code so that it integrates correctly with the OS - ...
Zé Loff's user avatar
  • 2,217
1 vote

What is the default ports tree in FreeBSD 12.1? Easiest way to change it?

The default ports tree is the current one. FreeBSD does not support older versions but they can be included as described below if you need an older port. Quarterly branches are cut from the HEAD to ...
Rob's user avatar
  • 1,804
1 vote

Using FreeBSD Ports & Packages, Installing Tomcat on FreeBSD 12 installs Java 8 rather than my already-installed Java 12

You can also try doing pkg fetch tomcat9 and then pkg add -M /var/cache/pkg/tomcat9.txz to install tomcat9 without pulling its dependencies.
arrowd's user avatar
  • 867
1 vote

On FreeBSD can I download a port on a separate device

As of June 2019, version 8.4 is almost four years beyond end-of-life. While what you describe is possible, it is fraught with numerous obstacles that make it infeasible. Although the ports tree is ...
Jim L.'s user avatar
  • 8,102
1 vote
Accepted

Download just one port from the Ports Collection of FreeBSD

extract You can't do it with portsnap. If you've already a snapshot (you downloaded it already) you can extract only parts of ports tree (portsnap extract databases/postgresql11-server), see man ...
uzsolt's user avatar
  • 1,927
1 vote

Cross compile ports freebsd 11

There is already a cross compiler available for FreeBSD 11. You can try the gnatcross-aarch64 port on a i386 or amd64 host. you may want to compile all the gnatcross bits from ports. There are two ...
Tarjei T. Jensen's user avatar
1 vote

How do I enable options for installed Ports in FreeBSD?

Note, you can also enable ports-wide options by editing /etc/make.conf, and the ports(7) manpage demonstrates this in example 4: Example 4: Setting Ports Options via make.conf(5) The following lines ...
Tavi's user avatar
  • 63
1 vote

How to install PostgreSQL 9.3 in FreeBSD jail?

If you want to build ports in a jail that might have read-only filesystems, you better set up your ports environment properly. I use make.conf for this. I use these settings, if my /usr/ports is ...
Martin Sugioarto's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible