portmanager error: Error occurred reading /usr/local/etc/pkgtools.conf - SOLVED

Willem Hendriks willem.hendriks.reg at xs4all.nl
Fri Dec 1 04:59:25 PST 2006


Gerard wrote:
> On Friday December 01, 2006 at 07:18:16 (AM) Willem Hendriks wrote:
> 
> 
>> When i install any port with portmanager, i get the following error-message:
>>
>> <error message>
>> ** Error occured reading /usr/local/etc/pkgtools.conf:
>>         undefined method `x11base' for nil:NilClass
>> ** Error occured reading /usr/local/etc/pkgtools.conf:
>>         undefined method `x11base' for nil:NilClass
>> ...
>> </error message>
>>
>> This example was outputted after: portmanager -u, but i see it with
>> every install. In pkgtools.conf i indeed see x11base:
>>
>> <pkgtools.conf>
>> ...
>> AFTERINSTALL = {
>>     # Re-enable the X wrapper
>>     'x11-servers/XFree86-4-Server' => sprintf(
>>      'cd %s/bin && if [ -x Xwrapper-4 ]; then ln -sf Xwrapper-4 X; fi',
>>      x11base()),
>>   }
>> ...
>> </pkgtoosl.conf>
>>
>> When i installed some port (antiword) manually by going to
>> /usr/ports/textproc and do a make, make install. I dont see any error
>> message at all. When i do a
>>
>> $ portmanager textproc/antiword
>>
>> The same error gets by again. My system:
>> FreeBSD 6.1-RELEASE with xorg installed and working correctly. dmesg output:
>> http://www.xs4all.nl/~whendrik/dmesg
> 
> I use 'portmanager' all the time; however, I do not avail myself of the
> pkgtool.conf file, preferring to use the pm-020.conf file instead.
> 
> Are you sure about the syntax of the pkgtools.conf file? Obviously the
> problem lies there. You could just try commenting out that section, or
> just renaming the file entirely -- portmanager will then ignore it --
> and try rebuilding the port again.
> 
> 

The files is a standard file which i didn't touched. I did not knew the
small importantce of those lines, i commented them out and no more error
message..


More information about the freebsd-questions mailing list