官术网_书友最值得收藏!

Installing a Binary Distribution

You can also build binary packages that can be installed on other machines using the RPM spec file (packaging/cups.spec) or EPM list file (packaging/cups.list). The latter also supports building of binary RPMs (Red Hat Package Manager), which makes it more convenient to use.

Building RPMs

You can find the RPM software at http://www.rpm.org/.

The source distributions include an RPM spec file that can be used to build RPM packages for your Linux distribution. The rpmbuild command is used to build from the tar files:

#rpmbuild -ta cups-version-source.tar.gz 

Or

#rpmbuild -ta cups-version-source.tar.bz2 

You will need the gcc, libjpeg, libjpeg-devel, libpng, libpng-devel, libtiff, libtiff-devel, zlib, and zlib-devel packages installed to compile CUPS with all the standard functionalities. The krb5-devel and krb5-libs packages, openldap and openldap-devel packages, openslp, and openslp-devel packages will allow support for Kerberos (CUPS 1.3.x only), LDAP, and SLP respectively.

The spec file supports two options, --without php and --without dbus, which control whether the PHP and DBUS support is compiled into the packages. For example, if you are compiling CUPS 1.2.4 or earlier on Red Hat Enterprise Linux, you will need to provide the --without dbus option since that distribution does not have a compatible version of the D-BUS libraries available:

#rpmbuild -ta cups-version-source.tar.gz --without dbus 

Similarly, if you don’t have the php-devel package installed, then you can use the --without the php option to omit the PHP support from the generated RPMs.

#rpmbuild -ta cups-version-source.tar.gz --without php

Creating Binary Distribution with EPM

The EPM software is available at http://www.easysw.com/epm/.

The top level makefile supports generation of many types of binary distributions using EPM. To build a binary distribution type:

#make <format> 

Or

#gmake <format> 

For FreeBSD, NetBSD, and OpenBSD, the <format> target is one of the following:

  • epm—Builds a script + tarfile package
  • aix—Builds an AIX package
  • bsd—Builds a BSD package
  • deb—Builds a Debian package
  • depot—Builds a HP-UX package (also swinstall)
  • inst—Builds an IRIX package (also tardist)
  • osx—Builds a MacOS X package
  • pkg—Builds a Solaris package
  • rpm—Builds a RPM package
  • setld—Build a Tru64 UNIX package
  • slackware—Build a Slackware package
  • swinstall—Build a HP-UX package (also depot)
  • tardist—Builds an IRIX package (also inst)

You can also use Google search engine to find other free binaries:

http://www.google.com/search?q=cups+binary+package&btnG=Search

Note

Mac OS X 10.5 comes with the CUPS 1.3. Cups1.3.x can be compiled and installed on the earlier versions of Mac OS X directly from source. Some GUI admin tools may not work properly in these versions.

Installing a Portable Distribution

To install the CUPS software from a portable distribution, you will need to login as root user. You can also use the su command to login as root user. Once the user is set as root the shell script should be run:

#./cups.install

After asking you a few yes/no questions, the CUPS software will be installed and the scheduler will be started automatically.

Note

The su(switch user) can be used to change the ownership of a session to any user. It is most commonly employed to change the ownership from an ordinary user to the root user, thereby providing access to all parts, and all commands on the computer or system. For this reason, it is often referred to (although somewhat inaccurately) as the superuser command. It is also sometimes called the switch user command.

Installing an RPM Distribution

To install the CUPS software from an RPM distribution, you will need to be logged in as root user. As discussed earlier, doing a su login is also good enough. Once this is done, we can use the following commands to start installation:

#rpm -e lpr #rpm -i cups-1.1-linux-M.m.n-intel.rpm 

After a short delay, the CUPS software will be installed and the scheduler will be started automatically.

Installing CUPS from a Debian Distribution

To install the CUPS software from a Debian distribution, you will need to be logged in as the root user. Using the su is not good enough. Once you are logged in as the root user, you may run dpkg with:

#dpkg -i cups-1.1-linux-M.m.n-intel.deb 

After a short delay, the CUPS software will be installed and the scheduler will be started automatically.

Subversion Access

The CUPS source files are managed by the Subversion (SVN) software, available at:

http://subversion.tigris.org/

Source files are "checked in" with each change so that modifications can be tracked. The CUPS software is available via Subversion using the following URL:

http://svn.easysw.com/public/cups/

The following command can be used to check the current CUPS 1.3.x source from Subversion:

#svn co http://svn.easysw.com/public/cups/branches/branch-1.3/cups-1.3.x 

Similarly, the following command can be used to check the current CUPS 1.4.x source from Subversion:

#svn co http://svn.easysw.com/public/cups/trunk/cups 

Compiling from Subversion

The CUPS Subversion repository does not hold a copy of the pre-built configure script. It requires running the GNU autoconf software (2.60 or higher) before compiling the software from Subversion:

#autoconf -f 

Running the Software

Once the software is installed, the CUPS server can be started using the following command:

#/usr/sbin/cupsd 

You can check whether CUPS is running using the following command:

#service cups status 

Or

#ps -ax | grep cups
主站蜘蛛池模板: 驻马店市| 施秉县| 淮安市| 双鸭山市| 沅陵县| 嘉祥县| 石阡县| 德阳市| 黄陵县| 岐山县| 府谷县| 宝兴县| 达州市| 郑州市| 新乡市| 塘沽区| 千阳县| 永康市| 邯郸县| 冕宁县| 南漳县| 吉林市| 永平县| 含山县| 平乡县| 甘孜县| 大埔区| 永州市| 和林格尔县| 武宁县| 沙湾县| 津市市| 克什克腾旗| 阳西县| 磐石市| 五家渠市| 凌海市| 阜阳市| 柳江县| 武威市| 佛学|