Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1464

[GLib] Documentation for troubleshooting of build errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.7.1
    • GLib

    Description

      When I built Arrow GLib on macOS and Ubuntu-16.04, some tweaks listed below were required on my environment. I want to share them because they may help other users. Is there suitable place to describe them in the web site or source tree? Or, are there any other way to fix them?

      make install and ldconfig

      Arrow GLib depends on Arrow C++, so it must be installed with sudo make install before building Arrow GLib. In addition, on linux, sudo ldconfig is also needed.

      configure script failed because of AX_CXX_COMPILE_STDCXX_11 macro (macOS)

      1. Check whether autoconf-archive is installed.
      2. Run brew install autoconf-archive again. If it shows like the following message, run brew link autoconf-acrhive.
        $ brew install autoconf-archive
        Warning: autoconf-archive 2017.03.21 is already installed, it's just not linked.
        You can use `brew link autoconf-archive` to link this version.
        

      Note that some packages (e.g. gnome-common) conflict with autoconf-archive. If you see like the following message, run brew unlink <pkgname>.

      $ brew link autoconf-archive
      Linking /usr/local/Cellar/autoconf-archive/2017.03.21... 
      Error: Could not symlink share/aclocal/ax_check_enable_debug.m4
      Target /usr/local/share/aclocal/ax_check_enable_debug.m4
      is a symlink belonging to gnome-common. You can unlink it:
        brew unlink gnome-common
      

      configure script can't find gobject-introspection-1.0 (macOS)

      gobject-introspection requires libffi, and it's automatically installed with gobject-introspection. However it can't be found because it's keg-only. You need to set PKG_CONFIG_PATH when executing configure.

      $ PKG_CONFIG_PATH=$(brew --prefix libffi)/lib/pkgconfig ./configure
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wshimizu Wataru Shimizu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: