Linuxbrew / brew

:beer::penguin: The Homebrew package manager for Linux
https://linuxbrew.sh
BSD 2-Clause "Simplified" License
2.66k stars 236 forks source link

Installing fzf and dependencies causes library error - Vim no longer opens. #301

Closed ddickstein closed 7 years ago

ddickstein commented 7 years ago

After installing fzf with linuxbrew I tried opening Vim (I had previously installed Vim 8 with linuxbrew) and got the error

vim: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory

I tried re-installing Vim with linuxbrew and then got a similar error

vim: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

How can I resolve this? I have found scant advice online and of what little I found nothing worked.

Running locate on either of these directories indicates that they are in /usr/lib64/ on my machine.

Command line output:

$ brew install fzf
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
biogeme                       crowdin                       dmtx-utils                    gandi.cli                     gtef                          juju-wait                     librealsense                  magic-wormhole                sha1dc                        teleport                      urh                           zxing-cpp
bit                           ctop                          docker-credential-helper      gobuster                      guetzli                       latexila                      libtensorflow                 mysql-utilities               shellshare                    tfenv                         woboq_codebrowser
bluepill                      dhall-json                    dvd-vr                        grunt                         jenkins-lts                   libcds                        llvm@3.9                      prest                         spigot                        uniutils                      xsv
==> Updated Formulae
abcde                       blackbox                    crystal-lang                feedgnuplot                 gnuplot                     httest                      ldc                         mame                        mysql@5.6                   pcre                        ripgrep                     stuntman                    vala
abcm2ps                     botan                       csvtomd                     file-roller                 gnuradio                    hyper                       lean-cli                    mandoc                      ncmpc                       pcre2                       rmlint                      svgcleaner                  valabind
ack                         boxes                       curlpp                      flow                        gnutls                      i3status                    lftp                        mariadb                     neo4j                       pdf2htmlex                  robot-framework             svtplay-dl                  vapoursynth
acpica                      buku                        dante                       folly                       go                          ibex                        libarchive                  mbedtls                     newlisp                     pdfgrep                     rocksdb                     swi-prolog                  varnish
activemq                    byteman                     dcmtk                       fonttools                   goaccess                    icecast                     libav                       mdk                         newt                        pdftoedn                    rom-tools                   swiftformat                 vault
admesh                      cake                        debianutils                 fossil                      gobject-introspection       idris                       libbluray                   media-info                  nexus                       pdftoipe                    rpcgen                      swiftplate                  vaulted
advancemame                 calcurse                    deis                        fpc                         goenv                       ievms                       libchamplain                mediaconch                  node                        peco                        rtags                       swimat                      vdirsyncer
algol68g                    cargo-completion            diff-pdf                    freeradius-server           gofabric8                   imagemagick                 libcouchbase                mednafen                    node-build                  pgcli                       ruby-build                  syncthing                   vegeta
alot                        carrot2                     diff-so-fancy               freetds                     goffice                     imagemagick@6               libffi                      memcached                   node@0.10                   pidgin                      rust                        sysbench                    vert.x
alpine                      carthage                    direnv                      fuse-emulator               googler                     iperf3                      libgee                      menhir                      node@0.12                   pioneer                     s-lang                      sysdig                      vim ✔
android-ndk                 cassandra                   discount                    fzf                         gosu                        ipfs                        libgpg-error                mercurial                   node@4                      plantuml                    scalaenv                    tarsnapper                  vmtouch
android-platform-tools      castxml                     django-completion           gauge                       gradle                      irssi                       libgtop                     meson                       node@6                      platypus                    scipy                       tbb                         vte3
ansible                     ccache                      dmd                         gcc@4.9                     grails                      jasper                      libgweather                 mesos                       nomad                       pngquant                    screenfetch                 tcpreplay                   vultr
apache-drill                certbot                     docker                      gdbm                        graphene                    jboss-forge                 libmatroska                 metabase                    notmuch                     poco                        selenium-server-standalone  termius                     wakatime-cli
apache-zeppelin             certigo                     docker-completion           geckodriver                 grc                         jenkins                     libmpdclient                metricbeat                  nsq                         ponyc                       sflowtool                   terraform                   weboob
app-engine-java             ceylon                      docker-machine-completion   gegl                        greed                       jetty                       libmxml                     midnight-commander          nss                         poppler                     shadowsocks-libev           terragrunt                  webpack
aptly-completion            chakra                      doctl                       getmail                     groovy                      jid                         libosmium                   mighttpd2                   nuget                       pqiv                        shairport-sync              texmath                     wesnoth
arangodb                    charm                       doitlive                    gexiv2                      grpc                        jrnl                        libphonenumber              mikutter                    numpy                       proselint                   simple-obfs                 thefuck                     winetricks
archi-steam-farm            charm-tools                 dosfstools                  ghostscript                 gsettings-desktop-schemas   jruby                       libpng                      miller                      nvc                         protobuf-swift              sip                         timelimit                   wireshark
armor                       chromaprint                 dovecot                     git                         gspell                      jshon                       libsodium                   minimesos                   offlineimap                 psqlodbc                    sjk                         tinc                        xapian
artifactory                 chromedriver                dub                         git-annex                   gssdp                       json-fortran                libspectre                  minio                       omega                       pwntools                    slimerjs                    tintin                      xmake
atk                         clang-format                duplicity                   git-archive-all             gti                         json-glib                   libsquish                   minizinc                    ompl                        pybind11                    slrn                        tippecanoe                  xonsh
augeas                      clhep                       dvm                         git-ftp                     gtk+3                       jsonschema2pojo             libunwind                   mitmproxy                   ooniprobe                   pygobject3                  smali                       tnef                        yle-dl
autoconf-archive            cockatrice                  ejdb                        git-lfs                     gtksourceview3              juju                        libvoikko                   mkdocs                      open-mpi                    pyinvoke                    snap-telemetry              todolist                    youtube-dl
autogen                     codequery                   elixirscript                git-quick-stats             gucharmap                   jump                        libwebsockets               molecule                    openrtsp                    pypy                        softhsm                     todoman                     zenity
aws-elasticbeanstalk        collector-sidecar           emp                         git-subrepo                 guile                       kafka                       libwps                      monetdb                     openvdb                     pyqt5                       sonar-scanner               tomcat                      zimg
aws-sdk-cpp                 commandbox                  entr                        gitlab-ci-multi-runner      gupnp                       khal                        linkerd                     mongo-c-driver              openvpn                     python3                     sonarqube                   tomcat@6                    zinc
awscli                      compcert                    eralchemy                   gjs                         gxml                        kibana                      lldpd                       mongo-orchestration         osc                         qscintilla2                 source-to-image             tomcat@7                    znc
azure-cli                   conan                       erlang                      glib                        haproxy                     knot-resolver               llvm                        monit                       osquery                     quex                        sourcery                    tomcat@8.0                  zstd
bacula-fd                   consul-backinator           esniper                     gnome-autoar                harfbuzz                    kobalt                      logtalk                     mono                        osrm-backend                rancher-cli                 spdlog                      translate-shell
bagit                       convox                      etcd                        gnome-builder               haskell-stack               kompose                     lxc                         monotone                    p11-kit                     rancher-compose             sqlparse                    translate-toolkit
baobab                      coreutils                   eventql                     gnome-icon-theme            haxe                        kops                        lynis                       mosquitto                   packetbeat                  rclone                      ssdb                        ttyd
basex                       couchdb-lucene              excel-compare               gnome-themes-standard       hebcal                      kotlin                      lzo                         mpd                         paket                       readline                    sshguard                    tundra
bash-completion             creduce                     exim                        gnu-apl                     hg-flow                     ktmpl                       m-cli                       mycli                       par2                        redpen                      statik                      twarc
bazel                       cromwell                    fabric                      gnu-units                   highlight                   kubernetes-cli              macvim                      mypy                        parallel                    reposurgeon                 storm                       typescript
bitrise                     crystal-icr                 fdroidserver                gnumeric                    hledger                     kubernetes-helm             mailutils                   mysql@5.5                   pcap_dnsproxy               rgbds                       stout                       vagrant-completion
==> Renamed Formulae
bash-completion2 -> bash-completion@2               docker171 -> docker@1.71                            grails25 -> grails@2.5                              influxdb08 -> influxdb@0.8                          mariadb100 -> mariadb@10.0                          postgresql94 -> postgresql@9.4                      ruby21 -> ruby@2.1
bazel02 -> bazel@0.2                                erlang-r18 -> erlang@18                             gsl1 -> gsl@1                                       jboss-as5 -> jboss-as@5                             open-mpi16 -> open-mpi@1.6                          postgresql95 -> postgresql@9.5                      ruby22 -> ruby@2.2
bigdata -> blazegraph                               ffmpeg28 -> ffmpeg@2.8                              gst-ffmpeg010 -> gst-ffmpeg@0.10                    jetty8 -> jetty@8                                   percona-server55 -> percona-server@5.5              rebar3 -> rebar@3                                   ruby23 -> ruby@2.3
bison27 -> bison@2.7                                freetds091 -> freetds@0.91                          gst-plugins-bad010 -> gst-plugins-bad@0.10          jpeg6b -> jpeg@6                                    percona-server56 -> percona-server@5.6              recipes -> gnome-recipes
boost-python159 -> boost-python@1.59                giflib5 -> giflib@5                                 gst-plugins-base010 -> gst-plugins-base@0.10        jpeg9 -> jpeg@9                                     perl514 -> perl@5.14                                redis26 -> redis@2.6
cassandra21 -> cassandra@2.1                        glfw2 -> glfw@2                                     gst-plugins-good010 -> gst-plugins-good@0.10        kafka080 -> kafka@0.80                              perl518 -> perl@5.18                                redis28 -> redis@2.8
cassandra22 -> cassandra@2.2                        gnupg21 -> gnupg@2.1                                gst-plugins-ugly010 -> gst-plugins-ugly@0.10        kibana41 -> kibana@4.1                              phantomjs192 -> phantomjs@1.92                      ruby187 -> ruby@1.8
clang-format38 -> clang-format@3.8                  gnuplot4 -> gnuplot@4                               gstreamer010 -> gstreamer@0.10                      kibana44 -> kibana@4.4                              phantomjs198 -> phantomjs@1.98                      ruby193 -> ruby@1.9
docker111 -> docker@1.11                            gradle214 -> gradle@2.14                            hdf4 -> hdf@4                                       kubernetes-cli13 -> kubernetes-cli@1.3              play14 -> play@1.4                                  ruby20 -> ruby@2.0
==> Deleted Formulae
ctorrent                         devhelp                          ee                               elasticsearch@1.7                elasticsearch@2.3                libgroove                        node@5                           s3sync                           scsh                             webkitgtk                        xstow

==> Tapping homebrew/dupes
Cloning into '/home/ddickstein/.linuxbrew/Library/Taps/homebrew/homebrew-dupes'...
remote: Counting objects: 42, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 42 (delta 0), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (42/42), done.
Checking connectivity... done.
Tapped 36 formulae (103 files, 344.6K)
==> Installing dependencies for fzf: patchelf, zlib, binutils, linux-headers, glibc, xz, gmp, mpfr, libmpc, isl, gcc, pkg-config, homebrew/dupes/ncurses
==> Installing fzf dependency: patchelf
==> Downloading https://linuxbrew.bintray.com/bottles/patchelf-0.9_1.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring patchelf-0.9_1.x86_64_linux.bottle.tar.gz
  /home/ddickstein/.linuxbrew/Cellar/patchelf/0.9_1: 6 files, 1.2M
==> Installing fzf dependency: zlib
==> Downloading https://linuxbrew.bintray.com/bottles/zlib-1.2.11.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring zlib-1.2.11.x86_64_linux.bottle.tar.gz
  /home/ddickstein/.linuxbrew/Cellar/zlib/1.2.11: 12 files, 423.5K
==> Installing fzf dependency: binutils
==> Downloading https://linuxbrew.bintray.com/bottles/binutils-2.28.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring binutils-2.28.x86_64_linux.bottle.tar.gz
  /home/ddickstein/.linuxbrew/Cellar/binutils/2.28: 3,294 files, 206.8M
==> Installing fzf dependency: linux-headers
==> Downloading https://linuxbrew.bintray.com/bottles/linux-headers-3.18.27.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring linux-headers-3.18.27.x86_64_linux.bottle.tar.gz
  /home/ddickstein/.linuxbrew/Cellar/linux-headers/3.18.27: 742 files, 3.5M
==> Installing fzf dependency: glibc
==> Downloading https://ftpmirror.gnu.org/glibc/glibc-2.19.tar.bz2
==> Downloading from http://gnu.mirror.constant.com/glibc/glibc-2.19.tar.bz2
######################################################################## 100.0%
==> ../configure --disable-debug --disable-dependency-tracking --disable-silent-rules --prefix=/home/ddickstein/.linuxbrew/Cellar/glibc/2.19 --enable-obsolete-rpc --without-selinux --with-binutils=/home/ddickstein/.linuxbrew/opt/binutils/bin --with-headers=/home/ddickstein/.linuxbrew/opt/linux-headers/include
==> make
==> make install
==> /home/ddickstein/.linuxbrew/Cellar/glibc/2.19/bin/localedef -i en_US -f UTF-8 en_US.UTF-8
  /home/ddickstein/.linuxbrew/Cellar/glibc/2.19: 1,393 files, 39M, built in 3 minutes 34 seconds
==> Installing fzf dependency: xz
==> Downloading https://linuxbrew.bintray.com/bottles/xz-5.2.3.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring xz-5.2.3.x86_64_linux.bottle.tar.gz
  /home/ddickstein/.linuxbrew/Cellar/xz/5.2.3: 99 files, 1.8M
==> Installing fzf dependency: gmp
==> Downloading https://linuxbrew.bintray.com/bottles/gmp-6.1.1.x86_64_linux.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring gmp-6.1.1.x86_64_linux.bottle.1.tar.gz
  /home/ddickstein/.linuxbrew/Cellar/gmp/6.1.1: 20 files, 3.6M
==> Installing fzf dependency: mpfr
==> Downloading https://linuxbrew.bintray.com/bottles/mpfr-3.1.5.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring mpfr-3.1.5.x86_64_linux.bottle.tar.gz
  /home/ddickstein/.linuxbrew/Cellar/mpfr/3.1.5: 26 files, 3.9M
==> Installing fzf dependency: libmpc
==> Downloading https://linuxbrew.bintray.com/bottles/libmpc-1.0.3.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libmpc-1.0.3.x86_64_linux.bottle.tar.gz
  /home/ddickstein/.linuxbrew/Cellar/libmpc/1.0.3: 12 files, 466.4K
==> Installing fzf dependency: isl
==> Downloading https://linuxbrew.bintray.com/bottles/isl-0.15.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring isl-0.15.x86_64_linux.bottle.tar.gz
  /home/ddickstein/.linuxbrew/Cellar/isl/0.15: 71 files, 4.6M
==> Installing fzf dependency: gcc
==> Downloading https://linuxbrew.bintray.com/bottles/gcc-5.3.0.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gcc-5.3.0.x86_64_linux.bottle.tar.gz
==> Creating the GCC specs file: /home/ddickstein/.linuxbrew/Cellar/gcc/5.3.0/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.3.0/specs
  /home/ddickstein/.linuxbrew/Cellar/gcc/5.3.0: 1,352 files, 253.2M
==> Installing fzf dependency: pkg-config
==> Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.1.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/home/ddickstein/.linuxbrew/Cellar/pkg-config/0.29.1_2 --disable-host-tool --with-internal-glib --with-pc-path=/home/ddickstein/.linuxbrew/lib/pkgconfig:/home/ddickstein/.linuxbrew/share/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/home/ddickstein/.linuxbrew/Library/Homebrew/os/mac/pkgconfig/0
==> make
==> make check
==> make install
  /home/ddickstein/.linuxbrew/Cellar/pkg-config/0.29.1_2: 11 files, 669.5K, built in 28 seconds
==> Installing fzf dependency: homebrew/dupes/ncurses
==> Downloading https://ftpmirror.gnu.org/ncurses/ncurses-6.0.tar.gz
==> Downloading from http://open-source-box.org/ncurses/ncurses-6.0.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/home/ddickstein/.linuxbrew/Cellar/ncurses/6.0_2 --enable-pc-files --with-pkg-config-libdir=/home/ddickstein/.linuxbrew/Cellar/ncurses/6.0_2/lib/pkgconfig --enable-sigwinch --enable-symlinks --enable-widec --mandir=/home/ddickstein/.linuxbrew/Cellar/ncurses/6.0_2/share/man --with-manpage-format=normal --with-shared --with-gpm=no
==> make
==> make install
  /home/ddickstein/.linuxbrew/Cellar/ncurses/6.0_2: 3,836 files, 13.2M, built in 31 seconds
==> Installing fzf
==> Downloading https://linuxbrew.bintray.com/bottles/fzf-0.16.6.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring fzf-0.16.6.x86_64_linux.bottle.tar.gz
==> Caveats
To install useful keybindings and fuzzy completion:
  /home/ddickstein/.linuxbrew/opt/fzf/install

To use fzf in Vim, add the following line to your .vimrc:
  set rtp+=/home/ddickstein/.linuxbrew/opt/fzf

==> Summary
  /home/ddickstein/.linuxbrew/Cellar/fzf/0.16.6: 17 files, 3.2M

$ /home/ddickstein/.linuxbrew/opt/fzf/install
Downloading bin/fzf ...
  - Already exists
  - Checking fzf executable ... 0.16.6
Do you want to enable fuzzy auto-completion? ([y]/n) y
Do you want to enable key bindings? ([y]/n)

Generate ~/.fzf.bash ... OK
Generate ~/.fzf.zsh ... OK

Do you want to update your shell configuration files? ([y]/n) y

Update /home/ddickstein/.bashrc:
  - [ -f ~/.fzf.bash ] && source ~/.fzf.bash
    + Added

Update /home/ddickstein/.zshrc:
  - [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
    + Added

Finished. Restart your shell or reload config file.
   source ~/.bashrc  # bash
   source ~/.zshrc   # zsh

Use uninstall script to remove fzf.

For more information, see: https://github.com/junegunn/fzf

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
  /usr/local/bin/fwdproxy-config
  /usr/local/bin/shiv-reload-config
  /bin/libgcrypt-config
  /bin/python-config
  /bin/ncursesw5-config
  /bin/pkg-config
  /bin/xml2-config
  /bin/ncurses5-config
  /bin/krb5-config
  /bin/xmlsec1-config
  /bin/python2.7-config
  /bin/pcre-config
  /bin/xslt-config
  /bin/python2-config
  /bin/gpg-error-config
  /bin/icu-config
  /opt/local/bin/fwdproxy-config
  /sbin/ipmi-pef-config
  /sbin/bmc-config
  /sbin/pef-config
  /sbin/ipmi-chassis-config
  /sbin/ipmi-config
  /sbin/ipmi-sensors-config

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
  /usr/local/include/bash/variables.h
  /usr/local/include/bash/syntax.h
  /usr/local/include/bash/assoc.h
  /usr/local/include/bash/error.h
  /usr/local/include/bash/array.h
  /usr/local/include/bash/bashtypes.h
  /usr/local/include/bash/jobs.h
  /usr/local/include/bash/shell.h
  /usr/local/include/bash/subst.h
  /usr/local/include/bash/pathnames.h
  /usr/local/include/bash/alias.h
  /usr/local/include/bash/y.tab.h
  /usr/local/include/bash/builtins/builtext.h
  /usr/local/include/bash/builtins/bashgetopt.h
  /usr/local/include/bash/builtins/common.h
  /usr/local/include/bash/builtins/getopt.h
  /usr/local/include/bash/hashlib.h
  /usr/local/include/bash/bashjmp.h
  /usr/local/include/bash/version.h
  /usr/local/include/bash/general.h
  /usr/local/include/bash/conftypes.h
  /usr/local/include/bash/config-top.h
  /usr/local/include/bash/arrayfunc.h
  /usr/local/include/bash/xmalloc.h
  /usr/local/include/bash/bashansi.h
  /usr/local/include/bash/config.h
  /usr/local/include/bash/quit.h
  /usr/local/include/bash/include/typemax.h
  /usr/local/include/bash/include/maxpath.h
  /usr/local/include/bash/include/stat-time.h
  /usr/local/include/bash/include/posixjmp.h
  /usr/local/include/bash/include/posixtime.h
  /usr/local/include/bash/include/filecntl.h
  /usr/local/include/bash/include/unionwait.h
  /usr/local/include/bash/include/posixstat.h
  /usr/local/include/bash/include/shtty.h
  /usr/local/include/bash/include/stdc.h
  /usr/local/include/bash/include/posixdir.h
  /usr/local/include/bash/include/systimes.h
  /usr/local/include/bash/include/ansi_stdlib.h
  /usr/local/include/bash/include/ocache.h
  /usr/local/include/bash/include/chartypes.h
  /usr/local/include/bash/include/posixwait.h
  /usr/local/include/bash/include/shmbutil.h
  /usr/local/include/bash/include/memalloc.h
  /usr/local/include/bash/include/gettext.h
  /usr/local/include/bash/include/shmbchar.h
  /usr/local/include/bash/config-bot.h
  /usr/local/include/bash/externs.h
  /usr/local/include/bash/make_cmd.h
  /usr/local/include/bash/builtins.h
  /usr/local/include/bash/dispose_cmd.h
  /usr/local/include/bash/command.h
  /usr/local/include/bash/siglist.h
  /usr/local/include/bash/signames.h
  /usr/local/include/bash/bashintl.h
  /usr/local/include/bash/unwind_prot.h
  /usr/local/include/bash/sig.h
  /usr/local/include/cblas.h
  /usr/local/include/libgimli.h
  /usr/local/include/libgimli_ana.h
  /usr/local/include/atlas/atlas_cmvt_L2.h
  /usr/local/include/atlas/atlas_smvn_L1.h
  /usr/local/include/atlas/atlas_smvnkernels.h
  /usr/local/include/atlas/atlas_dr2_L2.h
  /usr/local/include/atlas/atlas_dsyr2NX.h
  /usr/local/include/atlas/atlas_csyrNX.h
  /usr/local/include/atlas/atlas_cmvn_L2.h
  /usr/local/include/atlas/atlas_sr1kernels.h
  /usr/local/include/atlas/atlas_slamch.h
  /usr/local/include/atlas/atlas_taffinity.h
  /usr/local/include/atlas/atlas_cr2.h
  /usr/local/include/atlas/atlas_ctGetNB_gerqf.h
  /usr/local/include/atlas/atlas_dGetNB_geqlf.h
  /usr/local/include/atlas/atlas_ssyrNX.h
  /usr/local/include/atlas/zmm.h
  /usr/local/include/atlas/atlas_dmvtkernels.h
  /usr/local/include/atlas/atlas_zsyr.h
  /usr/local/include/atlas/atlas_dr1_L2.h
  /usr/local/include/atlas/atlas_zmvt_L2.h
  /usr/local/include/atlas/atlas_stGetNB_gelqf.h
  /usr/local/include/atlas/atlas_cher2_L1.h
  /usr/local/include/atlas/atlas_ztGetNB_geqlf.h
  /usr/local/include/atlas/atlas_dsyrNX.h
  /usr/local/include/atlas/atlas_zr2kernels.h
  /usr/local/include/atlas/atlas_zr1_L1.h
  /usr/local/include/atlas/atlas_cr1.h
  /usr/local/include/atlas/atlas_stGetNB_gerqf.h
  /usr/local/include/atlas/atlas_csyr2NX.h
  /usr/local/include/atlas/atlas_zNCmm.h
  /usr/local/include/atlas/atlas_zsysinfo.h
  /usr/local/include/atlas/atlas_csyr_L1.h
  /usr/local/include/atlas/atlas_dsyr2.h
  /usr/local/include/atlas/atlas_zGetNB_gelqf.h
  /usr/local/include/atlas/atlas_sr2kernels.h
  /usr/local/include/atlas/atlas_cacheedge.h
  /usr/local/include/atlas/atlas_sGetNB_gelqf.h
  /usr/local/include/atlas/atlas_zr1kernels.h
  /usr/local/include/atlas/atlas_dr1kernels.h
  /usr/local/include/atlas/atlas_sr2_L2.h
  /usr/local/include/atlas/atlas_dtGetNB_geqlf.h
  /usr/local/include/atlas/atlas_type.h
  /usr/local/include/atlas/atlas_ctrsmXover.h
  /usr/local/include/atlas/atlas_sr2_L1.h
  /usr/local/include/atlas/atlas_cGetNB_geqlf.h
  /usr/local/include/atlas/atlas_dmvn.h
  /usr/local/include/atlas/atlas_dtGetNB_gerqf.h
  /usr/local/include/atlas/smm.h
  /usr/local/include/atlas/atlas_zmvn_L1.h
  /usr/local/include/atlas/atlas_cmvn.h
  /usr/local/include/atlas/dXover.h
  /usr/local/include/atlas/atlas_zr1.h
  /usr/local/include/atlas/atlas_cr2_L2.h
  /usr/local/include/atlas/atlas_csysinfo.h
  /usr/local/include/atlas/atlas_ssysinfo.h
  /usr/local/include/atlas/atlas_dGetNB_gerqf.h
  /usr/local/include/atlas/atlas_cmvtkernels.h
  /usr/local/include/atlas/atlas_buildinfo.h
  /usr/local/include/atlas/atlas_dtrsmXover.h
  /usr/local/include/atlas/atlas_cher2.h
  /usr/local/include/atlas/atlas_smvtkernels.h
  /usr/local/include/atlas/atlas_ssyr2.h
  /usr/local/include/atlas/atlas_cmvnkernels.h
  /usr/local/include/atlas/atlas_trsmNB.h
  /usr/local/include/atlas/atlas_sr2.h
  /usr/local/include/atlas/atlas_cmvn_L1.h
  /usr/local/include/atlas/atlas_tcacheedge.h
  /usr/local/include/atlas/atlas_dtGetNB_gelqf.h
  /usr/local/include/atlas/atlas_csNKB.h
  /usr/local/include/atlas/atlas_zmvt.h
  /usr/local/include/atlas/atlas_cr2_L1.h
  /usr/local/include/atlas/atlas_zmvn_L2.h
  /usr/local/include/atlas/atlas_dNCmm.h
  /usr/local/include/atlas/atlas_csyr.h
  /usr/local/include/atlas/atlas_zGetNB_geqlf.h
  /usr/local/include/atlas/zXover.h
  /usr/local/include/atlas/atlas_dlamch.h
  /usr/local/include/atlas/atlas_zmvtkernels.h
  /usr/local/include/atlas/atlas_smvt.h
  /usr/local/include/atlas/atlas_dsysinfo.h
  /usr/local/include/atlas/atlas_ssyr2_L2.h
  /usr/local/include/atlas/atlas_dsyr_L1.h
  /usr/local/include/atlas/atlas_dmvt_L1.h
  /usr/local/include/atlas/atlas_dr2kernels.h
  /usr/local/include/atlas/atlas_dmvn_L2.h
  /usr/local/include/atlas/atlas_zsyr2NX.h
  /usr/local/include/atlas/atlas_cGetNB_geqrf.h
  /usr/local/include/atlas/atlas_dmvt.h
  /usr/local/include/atlas/atlas_ctGetNB_geqrf.h
  /usr/local/include/atlas/atlas_ssyr2_L1.h
  /usr/local/include/atlas/atlas_dr1.h
  /usr/local/include/atlas/atlas_cGetNB_gelqf.h
  /usr/local/include/atlas/atlas_cher2_L2.h
  /usr/local/include/atlas/atlas_dmvn_L1.h
  /usr/local/include/atlas/atlas_zGetNB_geqrf.h
  /usr/local/include/atlas/atlas_zdNKB.h
  /usr/local/include/atlas/atlas_dsyr2_L2.h
  /usr/local/include/atlas/atlas_smvt_L2.h
  /usr/local/include/atlas/atlas_zr2_L2.h
  /usr/local/include/atlas/atlas_sr1.h
  /usr/local/include/atlas/atlas_ssyr2NX.h
  /usr/local/include/atlas/atlas_ztrsmXover.h
  /usr/local/include/atlas/atlas_sGetNB_gerqf.h
  /usr/local/include/atlas/atlas_zsyr_L2.h
  /usr/local/include/atlas/atlas_dr2.h
  /usr/local/include/atlas/atlas_tsumm.h
  /usr/local/include/atlas/atlas_zmvn.h
  /usr/local/include/atlas/atlas_sr1_L2.h
  /usr/local/include/atlas/atlas_dtGetNB_geqrf.h
  /usr/local/include/atlas/atlas_cr1kernels.h
  /usr/local/include/atlas/atlas_ssyr_L2.h
  /usr/local/include/atlas/atlas_cr2kernels.h
  /usr/local/include/atlas/atlas_zr2_L1.h
  /usr/local/include/atlas/atlas_dGetNB_geqrf.h
  /usr/local/include/atlas/atlas_ztGetNB_geqrf.h
  /usr/local/include/atlas/atlas_ctGetNB_gelqf.h
  /usr/local/include/atlas/atlas_dsyr2_L1.h
  /usr/local/include/atlas/atlas_cr1_L1.h
  /usr/local/include/atlas/atlas_ztGetNB_gelqf.h
  /usr/local/include/atlas/atlas_cNCmm.h
  /usr/local/include/atlas/atlas_zsyrNX.h
  /usr/local/include/atlas/atlas_ssyr.h
  /usr/local/include/atlas/atlas_dr1_L1.h
  /usr/local/include/atlas/atlas_zmvnkernels.h
  /usr/local/include/atlas/atlas_stGetNB_geqlf.h
  /usr/local/include/atlas/atlas_ztGetNB_gerqf.h
  /usr/local/include/atlas/atlas_zmvt_L1.h
  /usr/local/include/atlas/cXover.h
  /usr/local/include/atlas/atlas_smvn_L2.h
  /usr/local/include/atlas/atlas_csyr_L2.h
  /usr/local/include/atlas/atlas_cmvt_L1.h
  /usr/local/include/atlas/atlas_cGetNB_gerqf.h
  /usr/local/include/atlas/atlas_zGetNB_gerqf.h
  /usr/local/include/atlas/atlas_dmvt_L2.h
  /usr/local/include/atlas/atlas_zr1_L2.h
  /usr/local/include/atlas/atlas_dr2_L1.h
  /usr/local/include/atlas/atlas_smvn.h
  /usr/local/include/atlas/atlas_dmvnkernels.h
  /usr/local/include/atlas/atlas_sr1_L1.h
  /usr/local/include/atlas/sXover.h
  /usr/local/include/atlas/atlas_dsyr.h
  /usr/local/include/atlas/atlas_zher2_L2.h
  /usr/local/include/atlas/atlas_zsyr_L1.h
  /usr/local/include/atlas/atlas_zher2_L1.h
  /usr/local/include/atlas/atlas_strsmXover.h
  /usr/local/include/atlas/atlas_sNCmm.h
  /usr/local/include/atlas/atlas_sGetNB_geqrf.h
  /usr/local/include/atlas/atlas_dsyr_L2.h
  /usr/local/include/atlas/atlas_zr2.h
  /usr/local/include/atlas/atlas_zher2.h
  /usr/local/include/atlas/atlas_dGetNB_gelqf.h
  /usr/local/include/atlas/dmm.h
  /usr/local/include/atlas/atlas_smvt_L1.h
  /usr/local/include/atlas/atlas_cmvt.h
  /usr/local/include/atlas/cmm.h
  /usr/local/include/atlas/atlas_stGetNB_geqrf.h
  /usr/local/include/atlas/atlas_pthreads.h
  /usr/local/include/atlas/atlas_ssyr_L1.h
  /usr/local/include/atlas/atlas_ctGetNB_geqlf.h
  /usr/local/include/atlas/atlas_cr1_L2.h
  /usr/local/include/atlas/atlas_sGetNB_geqlf.h
  /usr/local/include/clapack.h

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
  /usr/local/lib/pkgconfig/bash.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
  /usr/local/lib/libatlas.a
  /usr/local/lib/libptcblas.a
  /usr/local/lib/libptf77blas.a
  /usr/local/lib/libf77blas.a
  /usr/local/lib/liblapack.a
  /usr/local/lib/libcblas.a

Warning: You have a curlrc file
If you have trouble downloading packages with Homebrew, then maybe this
is the problem? If the following command doesn't work, then try removing
your curlrc:
  curl https://github.com

$ brew config
HOMEBREW_VERSION: >1.1.0 (no git repository)
ORIGIN: https://github.com/Linuxbrew/brew
HEAD: 92bb61c506afd09388af2a391dd3f5998bdd4404
Last commit: 13 days ago
Core tap ORIGIN: https://github.com/Linuxbrew/homebrew-core
Core tap HEAD: 15dfe3d59191025330df7d76bf2aaa5015280845
Core tap last commit: 70 minutes ago
HOMEBREW_PREFIX: /home/ddickstein/.linuxbrew
HOMEBREW_REPOSITORY: /home/ddickstein/.linuxbrew
HOMEBREW_CELLAR: /home/ddickstein/.linuxbrew/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://linuxbrew.bintray.com
CPU: 32-core 64-bit sandybridge
Homebrew Ruby: 2.0.0-p648 => /usr/bin/ruby
Clang: N/A
Git: 2.9.3 => /bin/git
Perl: /bin/perl => /usr/bin/perl
Python: /usr/local/bin/python => /usr/bin/python2.7
Ruby: /bin/ruby => /usr/bin/ruby
Java: 1.8.0_121
Kernel: Linux 4.0.9-72_fbk13_4097_ge50f556 x86_64 GNU/Linux
OS: CentOS Linux release 7.3.1611 (Core)
OS glibc: 2.17
OS gcc: 4.8.5
Linuxbrew glibc: 2.19
Linuxbrew gcc: 5.3.0
Linuxbrew xorg: N/A
ddickstein commented 7 years ago

Maybe this should have been obvious, but I symlinked to /usr/lib64/libpython3.7.so.1.0 from ~/.linuxbrew/lib and that seemed to do the trick. If that's the right solution feel free to close, if that's wrong or a hack please comment with the correct approach. Thanks!

sjackman commented 7 years ago

Hi, Dani. Your workaround is bit of a hack, but if it works for you, then there's worse solutions. What's happening is that while building vim it's picking up system libraries from /usr/lib64 that it shouldn't be, and then it can't find them at run time. brew install --env=super vim may resolve the issue.

Consider installing Linuxbrew in /home/linuxbrew/.linuxbrew/ if possible so that you can use precompiled binary packages (known as bottles) for non-relocatable formula like vim.