Установка Midnight Commander под Mac OS X

on January 29th, 2012 by Hades | 5 Comments »

Устанавливать пакет mc из исходного кода немного не удобно из-за большого числа зависимостей (необходимо собрать дополнительные пакеты такие как glib2, gettext, expat, libiconv, gperf, ncurses, ncursesw, libffi, perl5, perl5.12, gdbm, xz, zlib, pkgconfig), поэтому необходимо установить утилиту управления пакетами в среде Mac OS X – MacPorts.
После успешной установки MacPorts, необходимо ввести следующие команды в консоль(терминал):

sudo port selfupdate
port variants mc
sudo port  install mc +ncurses

После успешной сборки пакета mc вы увидите следующее:

MacBook-Pro-Hades:~ hades$ /opt/local/bin/mc -V
GNU Midnight Commander 4.8.0
Built with GLib 2.30.2
Using the ncurses library
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;


Детальный процесс сборки mc:

MacBook-Pro-Hades:~ hades$ sudo port selfupdate
Password:
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.0.3 installed,
MacPorts base version 2.0.3 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
MacBook-Pro-Hades:~ hades$ port variants mc
mc has the variants:
   ncurses: use ncurses screen library
     * conflicts with slang2
[+]slang2: use slang2 screen library
     * conflicts with ncurses
   universal: Build for multiple architectures
MacBook-Pro-Hades:~ hades$ sudo port install mc +ncurses
--->  Computing dependencies for mc
--->  Dependencies to be installed: glib2 gettext expat libiconv gperf ncurses ncursesw libffi perl5 perl5.12 gdbm xz zlib pkgconfig
--->  Fetching archive for expat
--->  Attempting to fetch expat-2.0.1_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/expat
--->  Fetching expat
--->  Attempting to fetch expat-2.0.1.tar.gz from http://citylan.dl.sourceforge.net/project/expat/expat/2.0.1
--->  Verifying checksum(s) for expat
--->  Extracting expat
--->  Configuring expat
--->  Building expat
--->  Staging expat into destroot
--->  Installing expat @2.0.1_1
--->  Activating expat @2.0.1_1
--->  Cleaning expat
--->  Fetching archive for gperf
--->  Attempting to fetch gperf-3.0.4_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/gperf
--->  Fetching gperf
--->  Attempting to fetch gperf-3.0.4.tar.gz from http://lil.fr.distfiles.macports.org/gperf
--->  Verifying checksum(s) for gperf
--->  Extracting gperf
--->  Applying patches to gperf
--->  Configuring gperf
--->  Building gperf
--->  Staging gperf into destroot
--->  Installing gperf @3.0.4_2
--->  Activating gperf @3.0.4_2
--->  Cleaning gperf
--->  Fetching archive for libiconv
--->  Attempting to fetch libiconv-1.14_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/libiconv
--->  Fetching libiconv
--->  Attempting to fetch libiconv-1.14.tar.gz from http://lil.fr.distfiles.macports.org/libiconv
--->  Verifying checksum(s) for libiconv
--->  Extracting libiconv
--->  Applying patches to libiconv
--->  Configuring libiconv
--->  Building libiconv
--->  Staging libiconv into destroot
--->  Installing libiconv @1.14_0
--->  Activating libiconv @1.14_0
--->  Cleaning libiconv
--->  Fetching archive for ncursesw
--->  Attempting to fetch ncursesw-5.8_0.darwin_11.noarch.tbz2 from http://packages.macports.org/ncursesw
--->  Fetching ncursesw
--->  Verifying checksum(s) for ncursesw
--->  Extracting ncursesw
--->  Configuring ncursesw
--->  Building ncursesw
--->  Staging ncursesw into destroot
--->  Installing ncursesw @5.8_0
--->  Activating ncursesw @5.8_0
--->  Cleaning ncursesw
--->  Fetching archive for ncurses
--->  Attempting to fetch ncurses-5.9_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/ncurses
--->  Fetching ncurses
--->  Attempting to fetch ncurses-5.9.tar.gz from http://lil.fr.distfiles.macports.org/ncurses
--->  Verifying checksum(s) for ncurses
--->  Extracting ncurses
--->  Applying patches to ncurses
--->  Configuring ncurses
--->  Building ncurses
--->  Staging ncurses into destroot
--->  Installing ncurses @5.9_1
--->  Activating ncurses @5.9_1
--->  Cleaning ncurses
--->  Fetching archive for gettext
--->  Attempting to fetch gettext-0.18.1.1_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/gettext
--->  Fetching gettext
--->  Attempting to fetch gettext-0.18.1.1.tar.gz from http://lil.fr.distfiles.macports.org/gettext
--->  Verifying checksum(s) for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext
--->  Staging gettext into destroot
--->  Installing gettext @0.18.1.1_2
--->  Activating gettext @0.18.1.1_2
--->  Cleaning gettext
--->  Fetching archive for libffi
--->  Attempting to fetch libffi-3.0.10_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/libffi
--->  Fetching libffi
--->  Attempting to fetch libffi-3.0.10.tar.gz from http://ftp-stud.fht-esslingen.de/pub/Mirrors/sourceware.org/libffi/
--->  Verifying checksum(s) for libffi
--->  Extracting libffi
--->  Applying patches to libffi
--->  Configuring libffi
--->  Building libffi
--->  Staging libffi into destroot
--->  Installing libffi @3.0.10_2
--->  Activating libffi @3.0.10_2
--->  Cleaning libffi
--->  Fetching archive for gdbm
--->  Attempting to fetch gdbm-1.10_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/gdbm
--->  Fetching gdbm
--->  Attempting to fetch gdbm-1.10.tar.gz from http://lil.fr.distfiles.macports.org/gdbm
--->  Verifying checksum(s) for gdbm
--->  Extracting gdbm
--->  Configuring gdbm
--->  Building gdbm
--->  Staging gdbm into destroot
--->  Installing gdbm @1.10_1
--->  Activating gdbm @1.10_1
--->  Cleaning gdbm
--->  Fetching archive for perl5.12
--->  Attempting to fetch perl5.12-5.12.3_3.darwin_11.x86_64.tbz2 from http://packages.macports.org/perl5.12
--->  Fetching perl5.12
--->  Attempting to fetch perl-5.12.3.tar.bz2 from http://lil.fr.distfiles.macports.org/perl5.12
--->  Verifying checksum(s) for perl5.12
--->  Extracting perl5.12
--->  Applying patches to perl5.12
--->  Configuring perl5.12
--->  Building perl5.12
--->  Staging perl5.12 into destroot
--->  Installing perl5.12 @5.12.3_3
--->  Activating perl5.12 @5.12.3_3
--->  Cleaning perl5.12
--->  Fetching archive for perl5
--->  Attempting to fetch perl5-5.12.3_1+perl5_12.darwin_11.noarch.tbz2 from http://packages.macports.org/perl5
--->  Fetching perl5
--->  Verifying checksum(s) for perl5
--->  Extracting perl5
--->  Configuring perl5
--->  Building perl5
--->  Staging perl5 into destroot
--->  Installing perl5 @5.12.3_1+perl5_12
--->  Activating perl5 @5.12.3_1+perl5_12
--->  Cleaning perl5
--->  Fetching archive for xz
--->  Attempting to fetch xz-5.0.3_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/xz
--->  Fetching xz
--->  Attempting to fetch xz-5.0.3.tar.bz2 from http://lil.fr.distfiles.macports.org/xz
--->  Verifying checksum(s) for xz
--->  Extracting xz
--->  Configuring xz
--->  Building xz
--->  Staging xz into destroot
--->  Installing xz @5.0.3_0
--->  Activating xz @5.0.3_0
--->  Cleaning xz
--->  Fetching archive for zlib
--->  Attempting to fetch zlib-1.2.5_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/zlib
--->  Fetching zlib
--->  Attempting to fetch zlib-1.2.5.tar.bz2 from http://lil.fr.distfiles.macports.org/zlib
--->  Verifying checksum(s) for zlib
--->  Extracting zlib
--->  Applying patches to zlib
--->  Configuring zlib
--->  Building zlib
--->  Staging zlib into destroot
--->  Installing zlib @1.2.5_0
--->  Activating zlib @1.2.5_0
--->  Cleaning zlib
--->  Fetching archive for glib2
--->  Attempting to fetch glib2-2.30.2_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/glib2
--->  Fetching glib2
--->  Attempting to fetch glib-2.30.2.tar.xz from http://lil.fr.distfiles.macports.org/glib2
--->  Verifying checksum(s) for glib2
--->  Extracting glib2
--->  Applying patches to glib2
--->  Configuring glib2
--->  Building glib2
--->  Staging glib2 into destroot
--->  Installing glib2 @2.30.2_2
--->  Activating glib2 @2.30.2_2
--->  Cleaning glib2
--->  Fetching archive for pkgconfig
--->  Attempting to fetch pkgconfig-0.26_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/pkgconfig
--->  Fetching pkgconfig
--->  Attempting to fetch pkg-config-0.26.tar.gz from http://lil.fr.distfiles.macports.org/pkgconfig
--->  Verifying checksum(s) for pkgconfig
--->  Extracting pkgconfig
--->  Configuring pkgconfig
--->  Building pkgconfig
--->  Staging pkgconfig into destroot
--->  Installing pkgconfig @0.26_1
--->  Activating pkgconfig @0.26_1
--->  Cleaning pkgconfig
--->  Fetching archive for mc
--->  Attempting to fetch mc-4.8.0_0+ncurses.darwin_11.x86_64.tbz2 from http://packages.macports.org/mc
--->  Fetching mc
--->  Attempting to fetch mc-4.8.0.tar.xz from http://www.midnight-commander.org/downloads
--->  Verifying checksum(s) for mc
--->  Extracting mc
--->  Configuring mc
--->  Building mc
--->  Staging mc into destroot
--->  Installing mc @4.8.0_0+ncurses
--->  Activating mc @4.8.0_0+ncurses
--->  Cleaning mc
MacBook-Pro-Hades:~ hades$ /opt/local/bin/mc -V
GNU Midnight Commander 4.8.0
Built with GLib 2.30.2
Using the ncurses library
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

{Leave a response }

  1. Daniil says:

    После ввода sudo port install mc +ncurses
    окончание процесса выглядит вот так:
    —> Building mc
    Error: org.macports.build for port mc returned: command execution failed
    Please see the log file for port mc for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_mc/mc/main.log
    To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
    Error: Processing of port mc failed

    Как лечить ошибку?

  2. kroleg says:

    Консольный двухпанельный файловый менеджер Midnight Commander-4.8.17-5-g9cd1e16

    http://kr0leg.livejournal.com/

    Собран для x86_64 и статически слинкован с GNU библиотеками, openssl, libssh2, zlib, pcre. Ставится в /opt/kroleg/mc

  3. […] OS X   Posted by Hades   0 comments ShareПосле установки Midnight Commander необходимо чтобы в терминале отображались русские […]

  4. […] Comments » ShareРаботая с консольными приложениями типа Midnight Commander появляется острая необходимость постраничной […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.