installed libtool but libtoolize not found

后端 未结 4 535
醉话见心
醉话见心 2020-12-23 10:02

im trying to build libxml2 from source on my mac.

so i have autoconf libtool and automake installed using mac ports

autoconf and automake seem to be working

4条回答
  •  悲&欢浪女
    2020-12-23 10:12

    An alternative to Brew is to use macports. For example:

    $ port info libtool
    libtool @2.4.6_5 (devel, sysutils)
    Variants:             universal
    
    Description:          GNU libtool is a generic library support script. Libtool hides the complexity of using shared libraries behind a consistent, portable interface.
    Homepage:             https://www.gnu.org/software/libtool
    
    Build Dependencies:   xattr
    Platforms:            darwin, freebsd
    License:              libtool
    Maintainers:          Email: larryv@macports.org, GitHub: larryv
    

    Then like Brew, you do:

    $ sudo port install libtool
    Password:
    --->  Fetching archive for libtool
    --->  Attempting to fetch libtool-2.4.6_5.darwin_15.x86_64.tbz2 from https://packages.macports.org/libtool
    --->  Attempting to fetch libtool-2.4.6_5.darwin_15.x86_64.tbz2.rmd160 from https://packages.macports.org/libtool
    --->  Installing libtool @2.4.6_5
    --->  Activating libtool @2.4.6_5
    --->  Cleaning libtool
    --->  Updating database of binaries
    --->  Updating database of C++ stdlib usage
    --->  Scanning binaries for linking errors
    --->  No broken files found.                             
    --->  No broken ports found.
    

    Then you can check where it lives ... btw, you can soft-link glibtoolize to libtoolize. For my needs either was okay

    $ which glibtoolize
    /opt/local/bin/glibtoolize
    

提交回复
热议问题