We work with ports or how to install programs from the console without problems in Mac OS X
Recently I figured out how the "ports" work in Leopard, figured out and decided to write an illustrated tutorial for the people on this topic.
The “ports” have generally gone from FreeBSD systems, and since the Mac is also a kind of heir to this architecture, they also exist in it. What are the "ports" and how they work in Leopard.
Ports (English Ports) is a software solution in FreeBSD for installing third-party programs that are distributed in source codes (the usual way in the UNIX world) and in binary files (for closed source projects). The port includes the files necessary to properly compile, install, and run the application under FreeBSD. Currently, the collection of ports has about 19,000 applications for various purposes. (c) Wiki
So we already know that these are repositories with source codes of programs that we can collect in Leo in just a few minutes, there are a lot of programs, so everyone can find everything they need for their work.
The first thing we need is to install (update) a program that works with ports (port), to have the current version, go to
Go to the installation section and download the package MacPorts-1.7.1-10.5-Leopard.dmg for Leopard.
We will install and install it, install all of the program (updated) to the latest official version, now let's get down to working directly with it. Start the console and go to root mode (root) via the "su" command, run the "port" command and check the version from 1.7.1:
All is well, the versions are the same and we are interactive.
Now let's install some real-world program, for example, I recently searched for a hydra (hydra) under Leo, and she finds herself here and is waiting in the wings for Instal
In order to view the entire list of programs available for installation, type the command "list" :
We will see a lot of available programs, but we are looking for a hydra, type "info hydra" and find out that it is in the repository
Through the command "info" we can get information about any of all these programs, from the screenshot we see that the program depends on two libraries without which of course it will not work, but this is a pleasant feature of the ports, the installation program will do everything by itself - it will load and install all libraries and necessary files, all you have to do is to enter the "install hydra" command and wait for the installation to complete All installation is complete, open a new console window and enter "hydra" :
The program is successfully installed, you can use. As you saw the installation program went smoothly and painlessly.
The tutorial is written in easy language, I think you all have mastered and understood for yourself something else of the "hidden" features of Leopard.
All useful and successful instalov