This time I'll talk about how to install software on Mac OS X from source.
I want you to touch the "power" of open source software, in particular by the possession of the source code of software.
In this post I'll describe what to do to install from source code GNU Midnight Commander under Mac OS X. GNU Midnight Commander is for me the ideal interface for all operating systems on which I worked and then I could not install it on my MacBook after managing to install it also on Tru64 .
The procedure you describe has been tested on my MacBook Pro with Mac OS X 10.4.11 (Tiger). If you follow me step by step at the end you'll be able to install GNU Midnight Commander under Mac OS X from the source code.
- Prerequisite for all is the installation of the development of Apple XCODE which provides among other things, the make and the GCC compiler.
I installed the latest version (2.5) available on the site. After registering (registration is free!) I downloaded the file and installed xcode25_8m2558_developerdvd.dmg follow the signs.
To verify that the installation is successful, we run the application Terminal.app, at the command prompt by typing gcc-v you get something like:
Using built-in specs.
Target: i686-apple-darwin8
Configured with: / var/tmp/gcc/gcc-5370 2/src/configure ~ - disable-checking-enable-werror - prefix = / usr - mandir = / share / man - enable-languages \u200b\u200b= c, objc, c + +, obj-c + + --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)
digitando make -v si ottiene:
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
.
This means that there are two components that are installed and working.
- first prerequisite of GNU Midnight Commander is pkg-config :
- download the latest source of pkg-config (0.22 in my case)
- tar-xvzf pkg-config-0.22.tar. gz
- cd pkg-config-0.22
- . / configure
- make sudo make install
- after installation, you need to change the setting of the environment variable PATH to include / usr / local / bin.
need to edit / etc / profile (Sudo vi / etc / profile) and add the line: PATH = "$ PATH: / usr / local / bin"
- According to GNU Midnight Commander is a prerequisite for GNU gettext :
- download the latest source of gettext (0.16 in my case)
- tar-xvzf gettext-0.16.tar.gz cd gettext-
- 12:16
- . / configure
- make sudo make install
- third and final prerequisite GNU Midnight Commander is the glib :
- download the latest source of glib (2:12:13 in my case)
- tar-xvzf glib-2.12.13.tar.gz
- cd glib-
- 2:12:13. / Configure make
- sudo make install
- now finally install GNU Midnight Commander :
- download the latest source of GNU Midnight Commander (4.6.1)
- tar-xvzf mc-4.6.1.tar.gz cd
- mc-4.6.1. / configure - without-x - with-screen = ncurses
- make sudo make install
GNU Midnight Commander 4.6.1 Virtual File System
: tarfs, extfs, cpiofs, ftpfs fish
With builtin Editor Using the ncurses library
With subshell support as default With support for
background operations
With mouse support on xterm
With internationalization support
that's all folks! Let me know if you failed you too ...
soon
0 comments:
Post a Comment