How to install a later version of a package on FreeBSD
Newer FreeBSD version for package bypass
1
2
3
4
| Newer FreeBSD version for package pkg:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1301000
- running kernel: 1300139
|
Dont agree
Do the following change and lock your FreeBSD version to latest release for that version.
1
2
3
4
| root@freebsd:/usr/local/etc/pkg/repos # cat FreeBSD.conf
FreeBSD: {
url: "pkg+http://pkg0.bme.freebsd.org/FreeBSD:13:amd64/release_1/"
}
|
Install Salt 3005.1 FreeBSD 13.0
Follow above steps first
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| pkg install python3.X
mkdir salt_env
python3.x -m venv env
source env/bin/activate.csh
pip install --upgrade pip
pip install salt==3005.1 WILL FAIL
setenv C_INCLUDE_PATH /usr/local/include/
setenv CPLUS_INCLUDE_PATH /usr/local/include/
pkg install cppzmq
might need
pkg install libunwind
|
This solved errors like:
1
2
3
4
5
| /usr/include/string.h:95:9: note: previous declaration is here
size_t strlcpy(char * __restrict, const char * __restrict, size_t);
^
1 error generated.
error: command 'c++' failed with exit status 1
|
1
2
3
4
| #include <libunwind.h>
^~~~~~~~~~~~~
1 error generated.
error: command 'c++' failed with exit status 1
|