[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 »

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: 1744
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 62 times
Been thanked: 121 times

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

Post 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
These users thanked the author ericbsd for the post (total 2):
zen3ger (Mon Feb 10, 2020 2:44 pm) • grahamperrin (Sun Feb 14, 2021 2:50 pm)
Rating: 66.67%

User avatar
slughorn
Posts: 135
Joined: Mon Oct 02, 2017 2:55 pm
Has thanked: 14 times
Been thanked: 10 times

Re: Missing files/binaries after installation of 20.01

Post 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
These users thanked the author slughorn for the post:
zen3ger (Mon Feb 10, 2020 2:44 pm)
Rating: 33.33%

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 »

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

User avatar
ericbsd
Developer
Posts: 1744
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 62 times
Been thanked: 121 times

Re: Missing files/binaries after installation of 20.01

Post 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.

grahamperrin
Posts: 52
Joined: Sun Sep 04, 2016 6:06 am
Has thanked: 23 times
Been thanked: 0

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

Post 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)> 

User avatar
ericbsd
Developer
Posts: 1744
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 62 times
Been thanked: 121 times

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

Post by ericbsd »

Now it is more simple it is sudo pkg install ports.
These users thanked the author ericbsd for the post:
grahamperrin (Mon Feb 15, 2021 3:31 pm)
Rating: 33.33%

grahamperrin
Posts: 52
Joined: Sun Sep 04, 2016 6:06 am
Has thanked: 23 times
Been thanked: 0

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

Post by grahamperrin »


Post Reply