12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3# makeMaking all in scriptsgcc -DHAVE_CONFIG_H -I. -I../src -Wall -O3 -std=gnu99 -Wextra -I/usr/include -MT man2html.o -MD -MP -MF .deps/man2html.Tpo -c -oman2html.o man2html.cmv -f .deps/man2html.Tpo .deps/man2html.Po[…]Finally run the make install command to install the software. This is a simpleexample as it has no dependencies and hence does not complain about anything.Now if this package had dependencies upon other packages that are not installed,then the build process will face problems. Therefore you must find the appropriateversion for each package and go through the same process for each library.This method may work for small applications, but is definitely not suitable for largerapplications with more dependencies and complexities. It is also not recommendedto install the applications in FreeBSD as the program may not respect the FreeBSDrules for compilation and installation.Software DirectoriesAs you have decided now to install your application as a native package or fromthe FreeBSD ports system, you have to find out if that specific application is alreadyported to FreeBSD. There are various resources available to search your application:• FreshPorts: It is a website (available online at www.freshports.org)maintained by Dan Langille as an online directory of the FreeBSD ports andthe latest changes made to each port.You can search for the available software by name, description, or otherproperties.• FreeBSD website: There is a list of available software ports on this websitelocated at http://www.freebsd.org/ports. Just like FreshPorts, this is alsoable to list the ports in each category, and search based on different criteria.• Local ports repository: If you have a local ports repository, you can searchthe repository using make search command running from /usr/portsdirectory. This feature will be discussed in detail, later in this chapter.PackagesA package is an archive file (mostly with .tgz or .tbz extension) that containsprecompiled binaries of a specific software application, documentation, sampleconfigurations files, and other related files. It also contains a few other metafiles thatcontain information describing how the software is installed or removed.[ 49 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!