You can read details on each command either by going to the Fink website or by entering the command " man fink " in the Terminal. While these documents outline a number of ways to use Fink, the following steps will show you the basics on how to download and install a project from source. One package I have always liked is "Midnight Commander" mc , which is a file management utility for the Terminal that is not included in OS X.
The steps to install this package are to first see whether or not Fink has it, and then install and run it. The first step is to list the packages that Fink has to offer, by entering " fink list " in the Terminal. There are many packages, so you can filter the list by entering part of the desired package name after the " fink list " command. This option supports wildcards as well, which can further help you narrow down items in the list. Here are a couple of examples:.
To see if Fink has the Midnight Commander package which is actually named "mc" , you would run the following command:. Sure enough, the Fink project has the package available, so the next step is to install the package. This will automatically check for and install any package dependencies libraries and support applications that the package needs. Fink will check for required files libraries and such , and if there are multiple options for various dependencies it will ask you to pick which one to use; choosing the default is usually fine in this case the "aes" version of the library supports aes encryption, but either will do.
When your selections have been made, Fink will output the full list of dependencies that will be installed or updated, and will ask for confirmation before proceeding. The compilation and installation process may take some time, especially for large packages with many dependencies. For "mc", the process took about half an hour.
Once the compile is complete, you can run the installed program by entering its name directly in the Terminal. You will now need to have Fink download package descriptions for you. This is the preferred option for most users, since it is quick and there are multiple mirror sites available. However, rsync is often blocked by network administrators. If your firewall doesn't allow you to use rsync, then you can try. If you have an HTTP proxy set up, fink will pass its information along to cvs.
Note: you can only use anonymous cvs pserver through a proxy. Fink uses virtual packages to declare dependencies on X As of OS The supported options are:. Installation - 2. First Time Installation 2. You will need to accept the Xcode license as root. To do that, run sudo xcodebuild -license then scroll to the bottom of the text and type agree q Some packages require the full Xcode. Entering javac from a Terminal.
This includes perl and curl. Internet access. Enter your password and click the OK button. Throughout this book we assume you are logged in as an admin user, if not, then you must use the name and password of an admin account, not your own. Click the Continue button in the lower right-hand corner of the Install pane; the installation begins Figure The Fink installation in progress.
When the installer has finished, the progress bar is complete and the Close button is highlighted Figure When the installation is done, the progress bar is filled; click Close to finish. Click Close to finish the installation. The installer creates a new directory called sw on the volume you selected.
Fink is now installed. If you have the Terminal application open, we suggest quitting and restarting it to make sure your shells pick up the new Fink configuration see the tip, next page. Tip The installer will have modified your shell configuration. You are asked for your password Figure You are asked for your password to enable the sudo command. Enter your password, and press. Fink asks a series of questions. The default answers will appear inside square brackets [ ] , and in many cases the default will be nothingthat is, there will be nothing inside the square brackets.
That's OK. Unless you know that the answer should be different from the default, press to accept. In the example we have accepted all the defaults. Fink asks you a series of questions.
In this example we are accepting the default for every questionso we pressed for each one. In what additional directory should Fink look for downloaded tarballs? If you don't know what this means, it is safe to leave it at its default.
Do you want to change them? You can manually edit this file in the future if you wish, or rerun sudo fink configuration Of course, there is a man page: man fink will show it to you, and fink --help will give you a summary of available commands and options Figure Tips The use of sudo in this case is not really required. Fink automatically downloads, compiles, and installs the software. Using Fink to download and install the wget program. Building Dependency Tree The following NEW packages will be installed: wget 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get kB of archives. After unpacking kB will be used. Vincent Danen explains the basics of working with Fink. Fink is a collection of open source programs built for OS X. These programs are largely available on Linux, and on Windows via Cygwin. Fink uses DEB packages and is more similar to Debian's package management style, although the Fink front-end to build the. As a result, Fink makes it easy to get development tools on the Mac.
Fink makes the installation of, and continued upgrading, of these tools extremely simple. As you page through this list, you will quickly realize the huge number of packages that Fink provides, for all kinds of things. Want to use a command-line email client? Fink provides mutt. How about IRC?
0コメント