|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Installing PHP port
Hey all, Im trying to install the PHP5 port on my OpenBSD 4.8 box. Everytime i try to install it compiles for a few hours then spits out an error saying that
Code:
/usr |
|
|||
It is a fresh install this was the first thing I tried to install. It compile for hours and then says
Code:
/usr: write failed, file system is full install: /usr/ports/pobj/mysql-5.1.48/fake-i386/usr/local/share/mysql-test/suite/parts/inc/partition_text.inc: No space left on device *** Error code 71 Stop in /usr/ports/pobj/mysql-5.1.48/mysql-5.1.48/mysql-test (line 856 of Makefile). *** Error code 1 Stop in /usr/ports/pobj/mysql-5.1.48/mysql-5.1.48/mysql-test (line 872 of Makefile). *** Error code 1 Stop in /usr/ports/pobj/mysql-5.1.48/mysql-5.1.48/mysql-test (line 757 of Makefile). *** Error code 1 Stop in /usr/ports/pobj/mysql-5.1.48/mysql-5.1.48/mysql-test (line 596 of Makefile). *** Error code 1 Stop in /usr/ports/pobj/mysql-5.1.48/mysql-5.1.48 (line 518 of Makefile). *** Error code 1 Stop in /usr/ports/databases/mysql (line 2411 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/databases/mysql (line 1580 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/databases/mysql (line 2136 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/databases/mysql (line 2116 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/databases/mysql (line 1611 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/databases/mysql (line 2116 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php5/extensions (line 1765 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php5/extensions (line 2168 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php5/extensions (line 1580 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php5/extensions (line 2136 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php5/extensions (line 2116 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php5/extensions (line 1611 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/www/php5/extensions (line 2116 of /usr/ports/infrastructure/mk/bsd.port.mk). ===> Exiting www/php5/extensions with an error *** Error code 1 Stop in /usr/ports/www/php5 (line 135 of /usr/ports/infrastructure/mk/bsd.port.subdir.mk). How do I fix this? |
|
|||
here is the output for df and du
Code:
# du 12 ./CVS 12 ./core/CVS 12 ./core/files/CVS 20 ./core/files 12 ./core/patches/CVS 60 ./core/patches 12 ./core/pkg/CVS 68 ./core/pkg 172 ./core 12 ./extensions/CVS 12 ./extensions/files/CVS 20 ./extensions/files 12 ./extensions/patches/CVS 48 ./extensions/patches 16 ./extensions/pkg/CVS 276 ./extensions/pkg 384 ./extensions 12 ./patches/CVS 148 ./patches 736 . # df Filesystem 512-blocks Used Avail Capacity Mounted on /dev/wd0a 2057756 83072 1871800 4% / /dev/wd0k 99077368 36992 94086508 0% /home /dev/wd0d 8250812 16 7838256 0% /tmp /dev/wd0f 4122108 4122108 -206104 105% /usr /dev/wd0g 2057756 325380 1629492 17% /usr/X11R6 /dev/wd0h 18117212 270536 16940816 2% /usr/local /dev/wd0j 4122108 4 3916000 0% /usr/obj /dev/wd0i 4122108 4 3916000 0% /usr/src /dev/wd0e 10307100 11016 9780732 0% /var |
|
|||
Consider using packages as previously suggested by jggimi. The end result of building ports are the very same packages as already provided by the project. Unless you modify the Makefile's involved, the packages will be identical, & if you are tweaking the build, you are on your own.
If you investigate disk consumption with du(8), you will likely discover that /usr/ports/pobj is large due to building. Study Section 15.3.6 for learning how to clean up your tree. ...& if you insist on building ports, you will simply need to allocate more space to /usr/ports than in your current scheme. Going back to your thread on partition sizes, adding another disk simply for this subtree is another option. |
|
||||
You are looking in the wrong place. Look in /usr/ports, not in /usr/ports/lang/php. You are looking only at scaffolding, and only a small piece of the scaffolding -- the house is elsewhere.
You will find three structures in /usr/ports consume the largest amount of disk space:
Quote:
Please read FAQ 15.4.6. Again. |
|
|||
Quote:
2GB for /usr is seriously under-estimated when it comes to building ports. How much disk space is required depends upon how many applications are being built. As an example, I currently have the following usage:
Using the project's pre-built packages is a far simpler solution. Last edited by ocicat; 30th August 2011 at 01:37 PM. |
|
||||
One more thought, desreguard. You might consider using the -h option with du and df, and the -p m or -p g options with disklabel. These will make it easier for you to understand your storage utilization by directory and partition, as well as your partition sizes as they are configured.
|
|
||||
Unless I'm building a webserver or database machine (or some other setup that requires heavy /var usage), I partition everything around /usr. On my workstation, where I built ports and test patches, I have 2G for /usr, but then I have /usr/{ports,local,obj,src,xenocara,X11R6} all mounted on their own partitions. Even so, /usr is 33% full.
You probably don't need anything that complex, but then again if you aren't modifying the Makefile you don't need to build from ports, either. Just install the package and call it a day. You'll save yourself the headache of having to install the build tools that php requires and all the space that you would otherwise use building ports. If you *really* have your heart set on building ports, set FETCH_PACKAGES=Yes in /etc/mk.conf so all of the dependencies are installed from packages and only the port you are actually trying to build is built from source to cut down on wasted space.
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What came first: the port or the package? | rpindy | General software and network | 4 | 27th June 2010 11:15 PM |
Creating port | backrow | OpenBSD Packages and Ports | 9 | 9th September 2009 11:55 AM |
SSH on port 443 | maxrussell | General software and network | 4 | 6th April 2009 05:16 AM |
Passing args to port / make while installing apache | robot | FreeBSD Ports and Packages | 2 | 27th August 2008 01:55 PM |
problems installing mysql port | dejabu18 | FreeBSD Ports and Packages | 22 | 7th August 2008 09:23 AM |