Compile snappy Static library under Macox

Source: Internet
Author: User
Tags install brew automake

  1. Source Address: Https://github.com/google/snappy
    Download git clone https://github.com/google/snappy
  2. compile
    • into the snappy source directory, execute the command:./autogen.sh
      Error "./autogen.sh:line 3:aclocal:command not found"
      via HT Tp://superuser.com/questions/657925/cygwin-rtorrent-installing-libtorrent-autogen-sh-aclocal-not-found This article learned that The system does not have Automake installed,
      Execute command: BREAW install automake
      Error "-bash:brew:command not found"
      Install brew
      Execute command: Ruby- E "$ (curl-f sSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

      and then install Automake, Execute command: Brew install automake
      Execute command:./autogen.sh
      Error: "./autogen.sh:line 5:libtoolize:command not found"
      Install LIBT ool, execute command: Brew install Libtool
      continue to execute command:./autogen.sh
      Error "./autogen.sh:line 5:libtoolize:command not found"
      through this Article: Http://stackoverflow.com/questions/15448582/installed-libtool-but-libtoolize-not-found
      I was revising. Autogen.sh Change the fifth line to glibtoolize--copy
      There's also a change on the Web (I didn't try):
case  ' uname ' in  darwin*) glibtoolize --copy;;  *) libtoolize --copy;; Esac   

Execute command:./autogen.sh
Error: "Configure.ac:42:error:possibly undefined macro:ac_define
If this token and others is legitimate, please use M4_pattern_allow.
See the Autoconf documentation.
configure.ac:44:error:possibly undefined macro:ac_msg_failure "
Through this article Http://stackoverflow.com/questions/8811381/possibly-undefined-macro-ac-msg-error
I installed the pkgconfig and executed the command: Brew install Pkgconfig
Error "Rm:autom4te.cache/output.0:permission denied
Rm:autom4te.cache/output.1:permission denied
Rm:autom4te.cache/requests:permission denied
Rm:autom4te.cache/traces.0:permission denied
Rm:autom4te.cache/traces.1:permission denied
Rm:autom4te.cache:Directory not empty

Change to sudo, execute command: sudo./autogen.sh
-Execute configure, execute command:./configure
-Execute make, execute command: Make
-Execute make install, execute command: Make install
3. Verification

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Compile snappy Static library under Macox

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.