balanga
Posts: 118
Joined: Sat Aug 23, 2014 6:56 pm

Unable to build any ports

Sat Aug 23, 2014 8:26 pm

Has anyone successfully built any port on a Raspberry Pi?

I've tried a few but get lots of errors which I don't understand and can't help wondering if I've missed something...

When building a port is there normally a buildlog so that I have a record of any error messages generated?

I would love to install midnight commander, as I'm really lost without it.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12124
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Unable to build any ports

Sat Aug 23, 2014 9:42 pm

what do you mean by "build a port"?

to me it sounds like you want to dig a big hole for ships to sail into!

as for midnight commander, simple!

Code: Select all

sudo apt-get install mc

balanga
Posts: 118
Joined: Sat Aug 23, 2014 6:56 pm

Re: Unable to build any ports

Sun Aug 24, 2014 12:39 am

mahjongg wrote:what do you mean by "build a port"?

to me it sounds like you want to dig a big hole for ships to sail into!

as for midnight commander, simple!

Code: Select all

sudo apt-get install mc
Does that work on FreeBSD?

I presumed that FreeBSD was the topic here, but I'm new here so maybe I'm mistaken...

fruitoftheloom
Posts: 20486
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Unable to build any ports

Sun Aug 24, 2014 5:09 am

balanga wrote:
mahjongg wrote:what do you mean by "build a port"?

to me it sounds like you want to dig a big hole for ships to sail into!

as for midnight commander, simple!

Code: Select all

sudo apt-get install mc
Does that work on FreeBSD?

I presumed that FreeBSD was the topic here, but I'm new here so maybe I'm mistaken...
No that response was for Raspbian Wheez,y FreeBSD is different as it is Unix not Linux

RTM http://www.freebsd.org/doc/en_US.ISO885 ... ports.html
Retired disgracefully.....

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12124
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Unable to build any ports

Sun Aug 24, 2014 1:11 pm

balanga wrote: Does that work on FreeBSD?

I presumed that FreeBSD was the topic here, but I'm new here so maybe I'm mistaken...
your OP contains no mention of FreeBSD, so I assumed you were talking about the default OS Raspbian.

Didn't see I was in the FreeBSD section..... :?

So by "port" I assume you mean a port of freeBSD for the PI?

i feel silly now! :oops:
sorry! :roll:

Bakul Shah
Posts: 320
Joined: Sun Sep 25, 2011 1:25 am

Re: Unable to build any ports

Wed Aug 27, 2014 7:04 am

balanga wrote:Has anyone successfully built any port on a Raspberry Pi?

I've tried a few but get lots of errors which I don't understand and can't help wondering if I've missed something...

When building a port is there normally a buildlog so that I have a record of any error messages generated?

I would love to install midnight commander, as I'm really lost without it.
You may wish to ask on the [email protected] mailing list as that is where people who are capable of helping you hang out. You may wish to run the latest stable binary from ftp://ftp.freebsd.org/pub/FreeBSD/snaps ... AGES/10.0/. AFAIK this is still quite a moving target and more recent kernel/userland may yield better results. Also see http://www.cruwe.de/?p=78 if you want to build things under Qemu.

seedymac
Posts: 1
Joined: Fri Aug 30, 2013 8:55 pm

Re: Unable to build any ports

Mon Sep 01, 2014 8:14 pm

I was able to build a port, but it took like 6 hours.
I am using FreeBSD 11, after booting up successfully you need to install the source files for the ports collection.
1-portsnap fetch
2-portsnap extract
These two commands take a long time on the RPI, when the last one completes, You will have a fresh /usr/ports directory.
The port that I have installed is bzip2.
-cd /usr/ports/archivers/bzip2
-make install
This took a long time, bzip2 has lots of dependencies, Perl is one of them and binutils.
Note: I have mounted a USB drive on /usr/ports
Filesystem Size Used Avail Capacity Mounted on
/dev/mmcsd0s2a 14G 625M 13G 5% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/mmcsd0s1 17M 3.4M 14M 20% /boot/msdos
/dev/da0b 6.3G 906M 4.9G 15% /usr/ports
/dev/md0 29M 24K 26M 0% /tmp
/dev/md1 14M 56K 13M 0% /var/log
/dev/md2 4.4M 8.0K 4.0M 0% /var/tmp

liyize926
Posts: 4
Joined: Thu Sep 04, 2014 12:22 pm

Re: Unable to build any ports

Thu Sep 04, 2014 12:42 pm

My system is FreeBSD 10.
Did you have installed ports collection?
you can use these commands to install it;

Code: Select all

# portsnap fetch update
# portsnap  extract
if this step failed,the wrong message is"set your clock correctly...";the reason is RasPI doesn't has a time-of-day clock,you must setup your system time to the right time. you can use these commands.

Code: Select all

# ntpdate 202.120.2.101
Because of the low frequency of RasPI ,it will take about 8hrs...

then you can install whatever you like.
here is an example which you can find in FreeBSD Handbook Chap5.5.This example install the lsof.
eg.

Code: Select all

# cd /usr/ports/sysutils/lsof
# make
# make install
# make clean
At the first time I install minicom by using ports collection, I used the commands as follow:

Code: Select all

# make install clean
but it failed,i didn't know why, then I installed it step by step -----make then install then clean,and it woks.
Hope these can help you.

Return to “FreeBSD”