Page 1 of 1

[Solved] Missing files/binaries after installation of 20.01

Posted: Sun Feb 09, 2020 2:35 pm
by zen3ger
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.

Re: Missing files/binaries after installation of 20.01

Posted: Mon Feb 10, 2020 6:30 am
by ericbsd
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

Re: Missing files/binaries after installation of 20.01

Posted: Mon Feb 10, 2020 1:46 pm
by slughorn
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

Re: Missing files/binaries after installation of 20.01

Posted: Mon Feb 10, 2020 2:42 pm
by zen3ger
Thanks and sorry! I haven't checked the wiki and did portsnap from instinct.

Re: Missing files/binaries after installation of 20.01

Posted: Mon Feb 10, 2020 2:57 pm
by ericbsd
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.

git clone commands for /usr/ports from the GhostBSD repo

Posted: Sun Feb 14, 2021 3:40 pm
by grahamperrin
ericbsd wrote: Mon Feb 10, 2020 6:30 am

Code: Select all

sudo git clone https://github.com/ghostbsd/ghostbsd-ports/ /usr/ports
Alternatively (this might suffice for people who will simply build, with no interest in the history or committing):

Code: Select all

sudo git -C /usr clone -b master --depth 1 https://github.com/ghostbsd/ghostbsd-ports.git ports
Timed:

Code: Select all

grahamperrin@mowa219-gjp4-ghostbsd /u/ports [128]> time sudo git -C /usr clone -b master --depth 1 https://github.com/ghostbsd/ghostbsd-ports.git ports
Cloning into 'ports'...
remote: Enumerating objects: 177472, done.
remote: Counting objects: 100% (177472/177472), done.
remote: Compressing objects: 100% (159355/159355), done.
remote: Total 177472 (delta 15400), reused 108290 (delta 12810), pack-reused 0
Receiving objects: 100% (177472/177472), 70.84 MiB | 8.17 MiB/s, done.
Resolving deltas: 100% (15400/15400), done.
Updating files: 100% (141355/141355), done.

________________________________________________________
Executed in   40.70 secs   fish           external 
   usr time    5.88 secs  256.00 micros    5.88 secs 
   sys time   24.06 secs  602.00 micros   24.06 secs 

grahamperrin@mowa219-gjp4-ghostbsd /u/ports (master)> pwd
/usr/ports
grahamperrin@mowa219-gjp4-ghostbsd /u/ports (master)> sudo du -hs .
837M	.
grahamperrin@mowa219-gjp4-ghostbsd /u/ports (master)> 

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

Posted: Sun Feb 14, 2021 8:58 pm
by ericbsd
Now it is more simple it is sudo pkg install ports.

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

Posted: Mon Feb 15, 2021 3:31 pm
by grahamperrin