DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 30th August 2011
desreguard desreguard is offline
Port Guard
 
Join Date: May 2011
Posts: 11
Default 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
is full. That partition has 2 gigs on it. Has anyone else encountered this error and if so how did they get around it?
Reply With Quote
  #2   (View Single Post)  
Old 30th August 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

See FAQ 15.4.6 on packages vs. ports.

See the man pages for df(1) and du(1) to help you understand consumption on the partition and its cause. You need more information before you can determine what has happened.

My guess is that you have a number of structures in /usr/ports from prior builds you could remove. The du program can confirm it. Object directories will not be cleansed automatically unless $BULK is set to Yes.

Please consider FAQ 15.4.6 carefully. If I'm right, your wounds are self-inflicted.

Last edited by jggimi; 30th August 2011 at 09:23 AM.
Reply With Quote
  #3   (View Single Post)  
Old 30th August 2011
desreguard desreguard is offline
Port Guard
 
Join Date: May 2011
Posts: 11
Default

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?
Reply With Quote
  #4   (View Single Post)  
Old 30th August 2011
desreguard desreguard is offline
Port Guard
 
Join Date: May 2011
Posts: 11
Default

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
Does compiling php5 really use up that much space when compiling?
Reply With Quote
  #5   (View Single Post)  
Old 30th August 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by desreguard View Post
How do I fix this?
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.
Reply With Quote
  #6   (View Single Post)  
Old 30th August 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

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:

  1. Distribution files. This is the source code to your port and all of its dependencies.
  2. Package files. Those that you are building, which are exactly the same as what you will find on your nearest mirror.
  3. Object files. The code that is built as each dependency is compiled.
Quote:
Does compiling php5 really use up that much space when compiling?
You haven't started building php5 yet, you are still building its vast array of dependencies.

Please read FAQ 15.4.6. Again.
Reply With Quote
  #7   (View Single Post)  
Old 30th August 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by jggimi View Post
You haven't started building php5 yet, you are still building its vast array of dependencies.
Taking jggimi's statement another step, building any of the moderately sized ports such as PHP will require building a number of collateral packages needed in support of ultimately building PHP itself. Unless you need some of these collateral dependencies in other ports, they will never be needed on your system again. They were only required to aid in building PHP.

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:
  • /usr/ports: 334M
  • /usr/ports/distfiles: 3.5G
  • /usr/ports/packages: 3.2G
  • /usr/ports/pobj: 36.4G
...but I have also built more than simply PHP. Again how much disk space is required for these partitions all depends upon how much & what is being built.

Using the project's pre-built packages is a far simpler solution.

Last edited by ocicat; 30th August 2011 at 01:37 PM.
Reply With Quote
  #8   (View Single Post)  
Old 30th August 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

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.
Reply With Quote
  #9   (View Single Post)  
Old 30th August 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 08:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick