[Solved] Missing files/binaries after installation of 20.01  [SOLVED]

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
zen3ger
Posts: 2
Joined: Fri Feb 07, 2020 10:01 pm
Has thanked: 2 times
Been thanked: 0

[Solved] Missing files/binaries after installation of 20.01

Post by zen3ger » Sun Feb 09, 2020 2:35 pm

Hi,

New BSD user here. I've recently switched from linux to GhostBSD on my laptop and started messing with FreeBSD on my little home server.
I wanted to start porting a couple of applications that I used on Linux (lbry and riot.im desktop app and the ion shell) when I realized that the system is missing a couple of files that are present on my default FreeBSD install.

For example, I am unable to start building anything from ports:

Code: Select all

$ portsnap fetch
$ portsnap extract
$ cd /usr/ports/net/netcat/
$ make 
make: "/usr/ports/Mk/bsd.port.mk" line 1173: Unable to determine OS version.  Either define OSVERSION, install /usr/include/sys/param.h or define SRC_BASE.
When I check /usr/include/sys is completely empty.

Code: Select all

$ ls /usr/include/sys/
disk
$ ls /usr/include/sys/disk/
$
Additionally, it seems like that clang is not installed unlike on freebsd.

Code: Select all

# ON FREEBSD
$ whereis cc
cc: /usr/bin/cc /usr/share/man/man1/cc.1.gz
$ whereis clang
clang: /usr/bin/clang /usr/share/man/man1/clang.1.gz

# ON GHOSTBSD
$ whereis cc
cc: /usr/share/man/man1/cc.1.gz
$ whereis clang
clang: /usr/share/man/man1/clang.1.gz
Also, the rust pkg seems to be broken, but it's most likely only the missing cc hard link, like in FreeBSD. Even though, if I install llvm to have clang, then add a simlink to cc, I get some weird linker errors, that doesn't exists on FreeBSD with the default clang + rust pkg installed.
Last edited by zen3ger on Mon Feb 10, 2020 2:43 pm, edited 1 time in total.

User avatar
ericbsd
Developer
Posts: 1472
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 44 times
Been thanked: 64 times

Re: Missing files/binaries after installation of 20.01  [SOLVED]

Post by ericbsd » Mon Feb 10, 2020 6:30 am

First do not installed ports from FreeBSD, install it from GhostBSD.

Code: Select all

sudo git clone https://github.com/ghostbsd/ghostbsd-ports/ /usr/ports
All ports from FreeBSD that install a service will not work with GhostBSD.

Second, you need to install the os dev tools see this post https://forums.ghostbsd.org/viewtopic.p ... 6d875c5df6
These users thanked the author ericbsd for the post:
zen3ger (Mon Feb 10, 2020 2:44 pm)
Rating: 50%

User avatar
slughorn
Posts: 80
Joined: Mon Oct 02, 2017 2:55 pm
Location: Grimma / Germany
Has thanked: 9 times
Been thanked: 8 times

Re: Missing files/binaries after installation of 20.01

Post by slughorn » Mon Feb 10, 2020 1:46 pm

ericbsd wrote:
Mon Feb 10, 2020 6:30 am
First do not installed ports from FreeBSD, install it from GhostBSD.

Code: Select all

sudo git clone https://github.com/ghostbsd/ghostbsd-ports/ /usr/ports
All ports from FreeBSD that install a service will not work with GhostBSD.

Second, you need to install the os dev tools see this post https://forums.ghostbsd.org/viewtopic.p ... 6d875c5df6
It is already on the wiki: https://wiki.ghostbsd.org/index.php/Ports
These users thanked the author slughorn for the post:
zen3ger (Mon Feb 10, 2020 2:44 pm)
Rating: 50%

zen3ger
Posts: 2
Joined: Fri Feb 07, 2020 10:01 pm
Has thanked: 2 times
Been thanked: 0

Re: Missing files/binaries after installation of 20.01

Post by zen3ger » Mon Feb 10, 2020 2:42 pm

Thanks and sorry! I haven't checked the wiki and did portsnap from instinct.

User avatar
ericbsd
Developer
Posts: 1472
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 44 times
Been thanked: 64 times

Re: Missing files/binaries after installation of 20.01

Post by ericbsd » Mon Feb 10, 2020 2:57 pm

zen3ger wrote:
Mon Feb 10, 2020 2:42 pm
Thanks and sorry! I haven't checked the wiki and did portsnap from instinct.
That understandable since it is basically FreeBSD, but with different init and update mechanisms.

Post Reply