euglug.org

[Eug-lug] php and mysql

작성자

카테고리:



Jacob MeuserTue Nov 9 10:25:47 PST 2004

On Tue, Nov 09, 2004 at 08:17:59AM -0800, jgw at absent.org wrote:
> Don't use ports unless you specifically need to compile custom options.
> 
> Instead, use packages:
> 
> http://www.openbsd.org/ports.html#Get

good advice :)

> /usr/bin/pkg_add
> ftp://ftp.usa.openbsd.org/pub/OpenBSD/3.6/packages/i386/mysql-server-4.0.20.tgz
> 
> /usr/sbin/pkg_add
> ftp://ftp.usa.openbsd.org/pub/OpenBSD/3.6/packages/i386/php4-core-4.3.8.tgz
> 
> /usr/sbin/pkg_add
> ftp://ftp.usa.openbsd.org/pub/OpenBSD/3.6/packages/i386/php4-mysql-4.3.8.tgz

$ export PKG_PATH="ftp://ftp3.usa.openbsd.org/pub/OpenBSD/3.6/packages/i386"
$ sudo /usr/sbin/pkg_add mysql-server-4.0.20
$ sudo /usr/sbin/pkg_add php4-core-4.3.8
$ sudo /usr/sbin/pkg_add php4-mysql-4.3.8

by setting PKG_PATH, pkg_add knows where to find dependant packages.

there's a list of the packages on the CD in the "Welcome to OpenBSD" email
for root.  there's more packages on the ftp sites, and you can scan the
/usr/ports/INDEX file for all packages created by the ports system.

> etc...
> 
> Do each package one at a time and follow the post-install instructions
> printed on the screen.

or tee the output of pkg_add to a file for posterity :)

-- 
<jakemsr at jakemsr.com>