Use OS headers and libs: compiler.cpath /usr/include, compiler.library_path /usr/lib. Probably also use OS cctools (see example of gcc10-bootstrap).Ĥ. Make sure system compilers are used: compiler.whitelist gcc-4.2. See also an example of replacement variant of libcxx port.ģ. Set /usr as the prefix with configure.pre_args. Write portfiles with needed versions of components naming them to be distinct, like gnumake-snow.Ģ. Instead, use Macports with overlay repo (which is needed on 10A190 anyway). I just thought that we do not need to invent a bicycle with custom build environment or bother fixing a broken darwinbuild. You won't need to hunt down package installers or pre-compiled binaries for Apache, PHP, and their dependencies again.Regarding rebuilding opensource OS components: Porticus, on the other hand, is currently a free download. I've read good things about Port Authority, another MacPorts GUI, but I wasn't willing to pay $20 for a license. Porticus also supports Growl notifications so you can start up a long install, work on something else, and see exactly when install is complete. Select an item to view package details, including version, project URL, maintainer, dependencies, and description. In the screenshot above, blue items are installed and up-to-date, and items with updates available display in red. Although the beta release has a few rough edges, it's worked really well for me and its simple interface made it easy to quickly update my LAMP development server. Porticus is written in Cocoa, so it's pretty fast. Porticus is the most recent GUI released and is in beta at the writing of this post. Finally, a few GUIs have emerged for MacPorts. To specify variants, use the plus sign: % sudo port install php5 +apache2 +mysql5 +sqlite +postgres Tired of the Command Line? Try Porticus, a MacPorts GUIįink users have had the Fink Commander GUI to manage their installs for several years. To view a package's variants: port variants package_name PHP, for example, can be configured to work with specific web servers and different databases. MacPorts refers to these options as variants. Unix packages often have options which can be added or removed during installation. Most packages display hundreds of lines of output. > Attempting to fetch mysql-5.0.45.tar.gz from How simple is that?! Here's sample output from an install of MySQL 5. Installation is simple and the great thing about MacPorts is that if a package is dependent on other packages, MacPorts installs the dependent packages, too no questions asked! The same is true when upgrading MacPorts managed packages. Below are the most common MacPort command note that installs and updates are run with sudo. MacPorts is run from the command line by entering 'port' followed by a command and options. With MacPorts installed and configured, open a terminal window and we'll get busy installing packages. If you plan on running MacPorts installed packages with X11, review the MacPorts installation instructions. From a terminal window, run the following: export PATH=/opt/local/bin:/opt/local/sbin:$PATH ![]() You'll need to add MacPorts directories located in /opt to your shell environment. ![]() was the command lineĪfter installation, open a Terminal window to configure MacPorts. After installing both, download MacPorts, unpack, and run the installer. X11 can be downloaded from Apple's web site. These tools handle building Unix packages from source and MacPorts won't work without them. Xcode installs several developer tools, including gcc, the GNU C Compiler, and GNU Make. If not, you can get Xcode from Apple's Developer Connection web site. If you have a newer Mac, you should already have an Xcode install disk. The prerequisite installations for MacPorts are Apple's Xcode, formerly known as Developer Tools, and the X11 windows environment. In this post I'll go over how you can use MacPorts to manage Unix libraries, modules for languages including Perl and Python, and open source applications, including Wordpress, MediaWiki, and Gallery. Although Fink appears to have a much larger user base, MacPorts is more closely tied to Apple's open source community. There are two package managers available for the Mac: MacPorts and Fink. Just like Linux distributions, Unix package managers exist for Mac OS X. While I know that *nix server administrators must be able to compile software from source, I wouldn't want to make it a regular practice. It took longer than I expected and dealing with the myriad of package dependencies required to add support for XML/XSLT, GD, and Sybase/MS SQL Server was a PITA. I compiled the latest version of PHP this week at work.
0 Comments
Leave a Reply. |