Unable to create local database! *** Error code 74 - portmas

hi

On a clean base system with no ports installed and ports tree up-to-date; I'm trying to install portmaster.

/usr/ports/ports-mgmt/portmaster

# make install clean
Code:
===>  License BSD accepted by the user
===>  Found saved configuration for portmaster-3.14_8
===>   portmaster-3.14_8 depends on file: /usr/local/sbin/pkg - not found
===>    Verifying install for /usr/local/sbin/pkg in /usr/ports/ports-mgmt/pkg
===>  Installing for pkg-1.0.4_1
===>   Generating temporary packing list
===>  Checking if ports-mgmt/pkg already installed
Unable to create local database!
*** Error code 74

Stop in /usr/ports/ports-mgmt/pkg.
*** Error code 1

Stop in /usr/ports/ports-mgmt/portmaster.
*** Error code 1

Stop in /usr/ports/ports-mgmt/portmaster.

Where is my local database and how do I create it? And, how do I resolve *** Error code 1?
 
wblock@ said:
Did you realize you were switching to pkgng?

And from freebsd.org/pkgng

about

What it is not

pkgng is not:

a ports management tool (i.e. it doesn't know how to build a port)
a replacement for portupgrade/portmaster

However, it doesn't get any easier for me:

# cd /usr/ports/ports-mgmt/portupgrade && make install clean
Code:
===>  License BSD accepted by the user
===>  Found saved configuration for portupgrade-2.4.10.3,2
===>   portupgrade-2.4.10.3,2 depends on file: /usr/local/sbin/pkg - not found
===>    Verifying install for /usr/local/sbin/pkg in /usr/ports/ports-mgmt/pkg
===>  Installing for pkg-1.0.4_1
===>   Generating temporary packing list
===>  Checking if ports-mgmt/pkg already installed
Unable to create local database!
*** Error code 74

Stop in /usr/ports/ports-mgmt/pkg.
*** Error code 1

Stop in /usr/ports/ports-mgmt/portupgrade.
*** Error code 1

Stop in /usr/ports/ports-mgmt/portupgrade.

Hmm, what type of witchcraft is this? :\
 
The point of the question was that to switch to pkgng requires running /usr/sbin/pkg. And adding some entries to /etc/make.conf. Which all must be done as root.
 
wblock@ said:
The point of the question was that to switch to pkgng requires running /usr/sbin/pkg. And adding some entries to /etc/make.conf. Which all must be done as root.

Thanks

I'm looking around the net for answers but am unsuccessful:

# cd /usr/ports/ports-mgmt/pkg && make install clean
Code:
===>  Installing for pkg-1.0.4_1
===>   Generating temporary packing list
===>  Checking if ports-mgmt/pkg already installed
Unable to create local database!
*** Error code 74


# cat /etc/make.conf
Code:
SENDMAIL_CF_DIR= /usr/local/share/sendmail/cf
WITH_PKGNG=yes
WITH_PKGNG=yes
WITH_PKGNG=yes

Also, how do I run /usr/sbin/pkg?
 
pkgng is just a new binary package management system. It does not compare to portupgrade or portmaster, which are tools for upgrading existing applications and both work with either the old package system or pkgng.

The question to ask is whether you want to use binary packages that someone else has installed, or ports that are compiled from source.
 
c00kie said:
# cd /usr/ports/ports-mgmt/pkg && make install clean
Code:
===>  Installing for pkg-1.0.4_1
===>   Generating temporary packing list
===>  Checking if ports-mgmt/pkg already installed
Unable to create local database!
*** Error code 74
# cat /etc/make.conf
Code:
WITH_PKGNG=yes
You need to add these after you installed ports-mgmt/pkg. And once is more than enough.
 
Well up until this point I wasn't able to install any port. I kept getting an error

Code:
Unable to create local database!
*** Error code 74

But after removing all lines from /etc/make.conf so it's now effectively just an empty file. I can successfully install ports with

# make install clean

Thankyou moderators for all your patience and the tips and help. ;)
 
Back
Top