Hitchhiker's Guide to Openbsd


make update instead of  make install


Download 1.27 Mb.
Pdf ko'rish
bet250/258
Sana04.04.2023
Hajmi1.27 Mb.
#1328980
1   ...   246   247   248   249   250   251   252   253   ...   258
Bog'liq
obsd-faq49

make update
instead of 
make install
. This will call pkg_add(1) with the -r flag. 
Note: Large applications will require a lot of system resources to build. Good examples are compilers 
like GCC 4.0 or the Java 2 Software Development Kit. If you get "out of memory" type of errors when 
building such a port, this usually has one of two causes: 

Your resource limits are too restrictive. Adjust them with ksh's ulimit or csh's limit command. If 
that doesn't help, just become root before starting the build, or use 
sudo(8)
with the 
-c
flag to run 
the build with the resources limited by the specified login class (refer to 
login.conf(5)
 for details 
about login classes). 

You simply don't have enough RAM in your machine. 
15.3.6 - Cleaning up after a build
You probably want to clean the port's default working directory after you have built the package and 
installed it. 
make clean
===> Cleaning for rsnapshot-1.2.9
In addition, you can also clean the working directories of all dependencies of the port with this make 
http://www.openbsd.org/faq/faq15.html (17 of 27)9/4/2011 10:02:29 AM


15 - The OpenBSD packages and ports system
target: 
make clean=depends
===> Cleaning for rsync-2.6.9
===> Cleaning for rsnapshot-1.2.9
If you wish to remove the source distribution set(s) of the port, you would use 
make clean=dist
===> Cleaning for rsnapshot-1.2.9
===> Dist cleaning for rsnapshot-1.2.9
In case you have been compiling multiple flavors of the same port, you can clear the working directories 
of all these flavors at once using 
make clean=flavors
You can also clean things up as they get built, by setting a special variable. Work directories will 
automatically be cleaned after packages have been created: 
make package BULK=Yes

Download 1.27 Mb.

Do'stlaringiz bilan baham:
1   ...   246   247   248   249   250   251   252   253   ...   258




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling