View Single Post
  #2   (View Single Post)  
Old 9th May 2008
nacredata nacredata is offline
Port Guard
 
Join Date: May 2008
Posts: 12
Default

Sure, seen this a few times. OpenBSD separates out the parts of x11 install and you need to install at least xbase and maybe xetc to get many ports to compile, even if you're not running x11.

But I would recommend using the packages instead, especially if you are just starting. pkg_add will pull in the dependencies automatically.

When doing package installs on a headless/command line machine, look for packages with "no_x11" at the end of them.

From the script I was using earlier this evening to install PHP on a new 4.3 (virtual) machine:

# define OpenBSD distribution server to use
SRV=ftp://rt.fm/pub/OpenBSD/4.3/packages/i386/
pkg_add ${SRV}php5-curl-5.2.5.tgz
pkg_add ${SRV}php5-gd-5.2.5-no_x11.tgz
pkg_add ${SRV}php5-mysql-5.2.5.tgz
pkg_add ${SRV}php5-mysqli-5.2.5.tgz

ln -s /var/www/conf/modules.sample/php5.conf /var/www/conf/modules
mkdir /var/www/tmp
chown www /var/www/tmp
ln -fs /var/www/conf/php5.sample/curl.ini /var/www/conf/php5/curl.ini
ln -fs /var/www/conf/php5.sample/gd.ini /var/www/conf/php5/gd.ini
ln -fs /var/www/conf/php5.sample/mysql.ini /var/www/conf/php5/mysql.ini
ln -fs /var/www/conf/php5.sample/mysqli.ini /var/www/conf/php5/mysqli.ini
Reply With Quote