BallAerospace / COSMOS

Ball Aerospace COSMOS
https://ballaerospace.github.io/cosmos-website/
Other
360 stars 129 forks source link

Mac OS Install error: seems like anaconda's QT is conflicting #965

Closed armaanhammer closed 5 years ago

armaanhammer commented 5 years ago

I'm trying to install the current version of COSMOS on Mac OS 10.12.6 using the INSTALL_COSMOS.sh script. Installation fails at two points:

The first point of failure (for unclear reasons) occurs here:

Fetching: qtbindings-4.8.6.5.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing cosmos:
    ERROR: Failed to build gem native extension.

    current directory: /Users/armaan/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5

The second point of failure seems to occur because the script is trying to use the version of QT I have installed through Anaconda, rather than the version of QT installed through Homebrew. This occurs here:

CMake Error at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/FindQt4.cmake:1314 (message):
  Found unsuitable Qt version "5.6.2" from /anaconda3/bin/qmake, this code
  requires Qt 4.x

I do not understand why the script is trying to access this version of QT. There are two versions of QT installed through homebrew, as evidenced by this:

MacBookPro-2:~ armaan$ brew info qt
qt: stable 5.12.2 (bottled), HEAD [keg-only]
Cross-platform application and UI framework
https://www.qt.io/
/usr/local/Cellar/qt/5.10.0_1 (9,351 files, 291.9MB)
  Poured from bottle on 2018-01-16 at 16:49:06
/usr/local/Cellar/qt/5.10.1 (9,375 files, 295.2MB)
  Poured from bottle on 2018-04-02 at 17:12:42
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/qt.rb
==> Dependencies
Build: pkg-config ✔
==> Requirements
Build: xcode ✔
Required: macOS >= 10.12 ✔
==> Options
--HEAD
    Install HEAD version
==> Caveats
We agreed to the Qt open source license for you.
If this is unacceptable you should uninstall.

qt is keg-only, which means it was not symlinked into /usr/local,
because Qt 5 has CMake issues when linked.

==> Analytics
install: 70,111 (30 days), 175,049 (90 days), 480,802 (365 days)
install_on_request: 19,937 (30 days), 49,828 (90 days), 185,911 (365 days)
build_error: 0 (30 days)

MacBookPro-2:~ armaan$ brew info qt@4
cartr/qt4/qt@4: stable 4.8.7 (bottled), HEAD
Cross-platform application and UI framework
https://www.qt.io/
/usr/local/Cellar/qt@4/4.8.7_5 (2,963 files, 86.5MB) *
  Poured from bottle on 2019-03-28 at 20:05:43
From: https://github.com/cartr/homebrew-qt4/blob/master/qt@4.rb
==> Dependencies
Required: openssl ✔
Optional: dbus ✘, mysql ✘, postgresql ✘
==> Options
--with-dbus
    Build with dbus support
--with-docs
    Build documentation
--with-mysql
    Build with mysql support
--with-postgresql
    Build with postgresql support
--HEAD
    Install HEAD version
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.

Phonon is not supported on macOS Sierra or with Xcode 8.

WebKit is no longer included for security reasons. If you absolutely
need it, it can be installed with `brew install qt-webkit@2.3`.

Since the version of QT that is installed through this script is reffered to as "qt@4", rather than just "qt", I would have expected the script to be able to differentiate these two versions, and the version installed by Anaconda.

Is this a simple PATH issue, or is there something else going on?

For completeness, here is a full dump from the terminal during the installation attempt:

MacBookPro-2:OreSat armaan$ bash <(\curl -sSL https://raw.githubusercontent.com/BallAerospace/COSMOS/master/vendor/installers/linux_mac/INSTALL_COSMOS.sh)
Installing Homebrew packages
Updated Homebrew from 4d68bee1b to 0dda83755.
Updated 5 taps (homebrew/bundle, homebrew/cask, homebrew/core, homebrew/services and jeffreywildman/virt-manager).
==> New Formulae
buildkit                gnunet                  kcov                    proper                  riff                    stolon
cafeobj                 go@1.11                 libopenmpt              protobuf@3.6            s2geometry              triangle
dockerize               h3                      llvm@7                  pyinstaller             sd                      v2ray-plugin
ffsend                  homeassistant-cli       mdbook                  re-flex                 serve                   zydis
gitleaks                i386-elf-grub           operator-sdk            reprepro                solr@7.7
==> Updated Formulae
adwaita-icon-theme ✔                             embulk                                           nats-streaming-server
atk ✔                                            emscripten                                       nave
autogen ✔                                        epic5                                            ncmpcpp
boost ✔                                          erlang                                           nco
cscope ✔                                         erlang@20                                        ncompress
freetype ✔                                       eslint                                           ncview
gcc ✔                                            esptool                                          needle
gdk-pixbuf ✔                                     etsh                                             neo4j
git ✔                                            exact-image                                      netcdf
glib ✔                                           exempi                                           netdata
glib-networking ✔                                exiftool                                         netpbm
gnupg ✔                                          exomizer                                         nexus
gnuradio ✔                                       exploitdb                                        nghttp2
gnutls ✔                                         faas-cli                                         nginx
gobject-introspection ✔                          fabio                                            nicovideo-dl
gsettings-desktop-schemas ✔                      fades                                            nifi
gtk+3 ✔                                          fastme                                           nnn
jeffreywildman/virt-manager/virt-manager ✔       fastqc                                           node
jeffreywildman/virt-manager/virt-viewer ✔        ffmpeg                                           node-build
libgpg-error ✔                                   fifechan                                         node@10
libosinfo ✔                                      file-formula                                     node@6
libsecret ✔                                      file-roller                                      node@8
libsoup ✔                                        firebase-cli                                     nqp
libvirt ✔                                        flake8                                           nspr
mosh ✔                                           flann                                            nss
mpfr ✔                                           flatcc                                           ntopng
numpy ✔                                          flow                                             ntp
openssl ✔                                        fluid-synth                                      nwchem
pcre ✔                                           fluxctl                                          ocamlbuild
protobuf ✔                                       fn                                               ocrmypdf
pygobject3 ✔                                     folly                                            octave
python ✔                                         fontforge                                        odpi
python@2 ✔                                       fonttools                                        offlineimap
qt ✔                                             fortio                                           ohcount
sqlite ✔                                         freetds                                          opa
uhd ✔                                            frugal                                           opencoarrays
vala ✔                                           fselect                                          openfortivpn
vte3 ✔                                           futhark                                          openimageio
youtube-dl ✔                                     fwup                                             openrct2
abcde                                            fx                                               openssl@1.1
abcm2ps                                          gambit-scheme                                    opentracing-cpp
abcmidi                                          gdal                                             openvdb
ack                                              gearboy                                          orc-tools
acpica                                           gearsystem                                       ori
activemq-cpp                                     geckodriver                                      osc
aescrypt-packetizer                              gecode                                           osm2pgsql
afflib                                           gedit                                            osquery
afio                                             geocode-glib                                     osrm-backend
agedu                                            gerbil-scheme                                    oxipng
aide                                             get_iplayer                                      packer
akamai                                           gexiv2                                           paket
algernon                                         ghc                                              pandoc
allegro                                          git-fixup                                        pandoc-citeproc
amazon-ecs-cli                                   git-flow-avh                                     parallel
ammonite-repl                                    git-lfs                                          parallelstl
amqp-cpp                                         git-quick-stats                                  passenger
angular-cli                                      gitbucket                                        pcl
annie                                            github-keygen                                    pdal
ansible                                          gitlab-runner                                    pdftoedn
anycable-go                                      gjs                                              percona-server
apache-arrow                                     glibmm                                           petsc
apache-arrow-glib                                glm                                              petsc-complex
apache-flink                                     glog                                             pgloader
apache-zeppelin                                  gloox                                            pgroonga
apachetop                                        glslang                                          pgrouting
apktool                                          glui                                             pgweb
app-engine-java                                  gmic                                             phoronix-test-suite
apt-dater                                        gmsh                                             php
arangodb                                         gmt                                              php-code-sniffer
aravis                                           gmt@4                                            php@7.1
arm-linux-gnueabihf-binutils                     gnome-builder                                    php@7.2
armadillo                                        gnome-latex                                      phpunit
arpack                                           gnu-tar                                          picard-tools
artifactory                                      go                                               picat
asciidoctorj                                     go-statik                                        pius
asdf                                             gocryptfs                                        planck
asio                                             godep                                            plank
ask-cli                                          golang-migrate                                   plantuml
atkmm                                            gomplate                                         platformio
atomist-cli                                      googler                                          pmd
ats2-postiats                                    goreleaser                                       podofo
aubio                                            gosu                                             points2grid
auditbeat                                        gr-osmosdr                                       polyml
aurora                                           gradle                                           ponyc
autossh                                          grafana                                          postgis
avfs                                             graph-tool                                       postgresql@9.4
aws-sdk-cpp                                      grpc                                             powerman
awscli                                           grpcurl                                          ppsspp
axel                                             grv                                              pre-commit
azure-cli                                        gssh                                             precomp
azure-storage-cpp                                gtkmm3                                           presto
babeld                                           gtksourceview3                                   primesieve
babl                                             gtksourceview4                                   procyon-decompiler
backupninja                                      gtranslator                                      profanity
bacula-fd                                        gucharmap                                        proj
balena-cli                                       gwyddion                                         prometheus
baobab                                           gx                                               protobuf-c
bartycrouch                                      gx-go                                            protobuf-swift
bash                                             hadolint                                         protoc-gen-go
batik                                            handbrake                                        prototool
bazel                                            hapi-fhir-cli                                    proxychains-ng
bedtools                                         hdf5                                             pspg
bee                                              hebcal                                           ptex
befunge93                                        helmfile                                         pulledpork
berkeley-db                                      help2man                                         pulumi
bettercap                                        hg-fast-export                                   pumba
bgpstream                                        hledger                                          pushpin
bibtexconv                                       homebank                                         pypy
bigloo                                           hub                                              qalculate-gtk
binaryen                                         i2pd                                             qxmpp
bind                                             i386-elf-binutils                                r
bindfs                                           ibex                                             rakudo
bit                                              imagemagick                                      rancher-cli
bitcoin                                          immortal                                         rawtoaces
bitrise                                          influxdb                                         rbenv
bitwarden-cli                                    instead                                          rbspy
blastem                                          ipfs                                             rebar3
bluetoothconnector                               ipython                                          redis
bmake                                            ispc                                             redis@3.2
bnd                                              istioctl                                         redis@4.0
boost-bcp                                        jadx                                             rhash
boost-build                                      jasper                                           rke
boost-mpi                                        jdupes                                           rocksdb
boost-python                                     jeffreywildman/virt-manager/osinfo-db            roswell
boost-python3                                    jeffreywildman/virt-manager/osinfo-db-tools      rst-lint
bowtie2                                          jenkins                                          rtags
boxes                                            jenkins-lts                                      ruby
brew-php-switcher                                jenv                                             ruby-build
bro                                              jetty                                            ruby@2.5
btfs                                             jetty-runner                                     rust
buildifier                                       jhipster                                         rustup-init
bundletool                                       jid                                              s3fs
burp                                             jo                                               s3ql
bwm-ng                                           joplin                                           salt
bzt                                              jpeg-turbo                                       sbcl
c-blosc                                          jruby                                            scalariform
cabextract                                       json-fortran                                     sceptre
caddy                                            jsonrpc-glib                                     scrcpy
caffe                                            juju                                             scw
calabash                                         julius                                           sdl2
calcurse                                         kafka                                            securefs
calicoctl                                        kallisto                                         serveit
cargo-completion                                 khal                                             serverless
carrot2                                          kibana                                           servus
cash-cli                                         kibana@5.6                                       sfcgal
cassandra@2.1                                    kitchen-sync                                     sfml
cassandra@2.2                                    knot                                             shadowsocks-libev
cataclysm                                        kompose                                          shapelib
cdk                                              kops                                             shellshare
cdogs-sdl                                        krakend                                          shellz
ceres-solver                                     ktmpl                                            ship
certbot                                          kube-ps1                                         shmux
cfengine                                         kubecfg                                          siege
cflow                                            kubeprod                                         simple-scan
cfr-decompiler                                   kubernetes-cli                                   simple-tiles
cglm                                             kubernetes-helm                                  simutrans
chakra                                           kustomize                                        singular
chapel                                           lcov                                             sip
check_postgres                                   ldc                                              skaffold
checkbashisms                                    lean-cli                                         skinny
checkstyle                                       ledger                                           skopeo
chezscheme                                       leiningen                                        slackcat
chkrootkit                                       leptonica                                        sn0int
chronograf                                       lf                                               solr
cimg                                             lgogdownloader                                   source-highlight
clamav                                           libbi                                            sourcery
cli53                                            libbitcoin                                       spatialite-gui
click                                            libbitcoin-blockchain                            spatialite-tools
clojure                                          libbitcoin-client                                speedtest-cli
clojurescript                                    libbitcoin-database                              sphinx-doc
closure-compiler                                 libbitcoin-explorer                              spigot
cmake                                            libbitcoin-network                               spirv-cross
cmark-gfm                                        libbitcoin-node                                  spotbugs
cocoapods                                        libbitcoin-protocol                              sqlcipher
cointop                                          libbitcoin-server                                sqldiff
collada-dom                                      libbluray                                        sqlite-analyzer
collector-sidecar                                libcerf                                          sqlmap
commandbox                                       libdazzle                                        stellar-core
compcert                                         libdill                                          step
conan                                            libdvdread                                       sundials
configen                                         libetpan                                         supersonic
confluent-oss                                    libfabric                                        svgo
conserver                                        libgaiagraphics                                  swagger-codegen
consul                                           libgeotiff                                       swagger-codegen@2
consul-template                                  libgosu                                          swi-prolog
container-diff                                   libgtop                                          swiftformat
convox                                           libgweather                                      swiftlint
coreutils                                        libheif                                          sxiv
coturn                                           liblcf                                           syncthing
couchdb                                          liblwgeom                                        taskell
cppad                                            libmagic                                         tbb
cpprestsdk                                       libosmium                                        telegraf
cproto                                           libphonenumber                                   teleport
crc32c                                           libpointing                                      template-glib
cromwell                                         libpq                                            termtosvg
crowdin                                          libpulsar                                        terraform
cryptominisat                                    libqalculate                                     terraform-inventory
cryptopp                                         librasterlite                                    terragrunt
csfml                                            librealsense                                     tgui
csvkit                                           libsoundio                                       thors-serializer
cucumber-cpp                                     libspatialite                                    thrift
curl                                             libssh2                                          tile38
curl-openssl                                     libswiften                                       tippecanoe
cython                                           libtensorflow                                    tmux-xpanes
czmq                                             libtermkey                                       tokei
darcs                                            libtins                                          tomcat
dartsim                                          libtommath                                       tomcat-native
dateutils                                        libtorrent-rasterbar                             tomcat@7
dav1d                                            libuninameslist                                  tomcat@8
davix                                            libuv                                            topgrade
dbhash                                           libxlsxwriter                                    tor
dcd                                              libyaml                                          treefrog
ddrescue                                         libzip                                           typescript
deark                                            linkerd                                          ucloud
debianutils                                      liquibase                                        unbound
deja-gnu                                         lldpd                                            unrar
dep                                              llnode                                           unzip
deployer                                         llvm                                             upscaledb
derby                                            lmod                                             v8
dhex                                             logstash                                         vagrant-completion
dialog                                           logtalk                                          valabind
diffoscope                                       lolcat                                           vault
diffstat                                         lorem                                            vifm
digdag                                           lsd                                              vim
dita-ot                                          ltc-tools                                        vim@7.4
django-completion                                lxc                                              vtk
dlib                                             lynis                                            vulkan-headers
dmd                                              lzlib                                            vultr
dmenu                                            mandoc                                           wabt
dnscrypt-proxy                                   mapnik                                           wartremover
dnsviz                                           mapserver                                        watchexec
docfx                                            mariadb                                          weaver
docker                                           mat2                                             weboob
docker-completion                                maxwell                                          wesnoth
doctl                                            menhir                                           whois
doitlive                                         mercurial                                        widelands
double-conversion                                mesa                                             wildfly-as
dovecot                                          metaproxy                                        winetricks
dpkg                                             metricbeat                                       wireguard-tools
draco                                            mgba                                             wolfssl
dropbear                                         micronaut                                        wsk
dscanner                                         micropython                                      wtf
dssim                                            mingw-w64                                        xapian
dtc                                              minio                                            xcodegen
dub                                              minio-mc                                         xmrig
duck                                             mitie                                            xpa
duply                                            mkl-dnn                                          xtensor
dwdiff                                           mkvtoolnix                                       xxhash
dwm                                              mlkit                                            yara
dyld-headers                                     mmark                                            yarn
dynamips                                         moarvm                                           ydcv
dynare                                           monero                                           yelp-tools
easyengine                                       monit                                            ykpers
easyrpg-player                                   mono                                             yle-dl
eccodes                                          mosquitto                                        you-get
efl                                              mpd                                              yq
eiffelstudio                                     mutt                                             zabbix
ejabberd                                         mvnvm                                            zbackup
elasticsearch                                    mvtools                                          zenity
elasticsearch@5.6                                mysql@5.6                                        zola
elektra                                          nano
==> Renamed Formulae
ark -> velero                                                             gloo-ctl -> glooctl
==> Deleted Formulae
at-spi2-atk             gdnsd                   go@1.8                  protobuf@2.5            solr@5.5                tmux-cssh
at-spi2-core            go@1.4                  monax                   protobuf@2.6            solr@6.6                zxing-cpp
==> Tapping cartr/qt4
Cloning into '/usr/local/Homebrew/Library/Taps/cartr/homebrew-qt4'...
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 32 (delta 0), reused 6 (delta 0), pack-reused 0
Unpacking objects: 100% (32/32), done.
Tapped 22 formulae (84 files, 117.3KB).
==> Pinned cartr/qt4
==> Installing qt@4 from cartr/qt4
==> Installing dependencies for cartr/qt4/qt@4: openssl
==> Installing cartr/qt4/qt@4 dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2r.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2r.sierra.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

For pkg-config to find openssl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.2r: 1,795 files, 12.4MB
==> Installing cartr/qt4/qt@4
==> Downloading https://dl.bintray.com/cartr/autobottle-qt4/qt@4-4.8.7_5.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring qt@4-4.8.7_5.sierra.bottle.tar.gz
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.

Phonon is not supported on macOS Sierra or with Xcode 8.

WebKit is no longer included for security reasons. If you absolutely
need it, it can be installed with `brew install qt-webkit@2.3`.
==> Summary
🍺  /usr/local/Cellar/qt@4/4.8.7_5: 2,963 files, 86.5MB
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /Users/armaan/Library/Caches/Homebrew/ant--bcel--6.3.tar.gz... (5.4MB)
Removing: /Users/armaan/Library/Caches/Homebrew/gnupg--2.2.12.sierra.bottle.tar.gz... (4.2MB)
Removing: /Users/armaan/Library/Caches/Homebrew/gnutls--3.6.6.sierra.bottle.tar.gz... (2.6MB)
Removing: /Users/armaan/Library/Caches/Homebrew/libassuan--2.5.2.sierra.bottle.tar.gz... (148.7KB)
Removing: /Users/armaan/Library/Caches/Homebrew/libgpg-error--1.35.sierra.bottle.tar.gz... (279.4KB)
Removing: /usr/local/Cellar/openssl/1.0.2k... (1,696 files, 12MB)
Removing: /usr/local/Cellar/openssl/1.0.2n... (1,792 files, 12.3MB)
Removing: /usr/local/Cellar/openssl/1.0.2o_1... (1,791 files, 12.3MB)
Removing: /usr/local/Cellar/openssl/1.0.2p... (1,793 files, 12.3MB)
Removing: /Users/armaan/Library/Logs/Homebrew/adns... (68B)
Removing: /Users/armaan/Library/Logs/Homebrew/ant... (105B)
Removing: /Users/armaan/Library/Logs/Homebrew/gnupg... (68B)
Removing: /Users/armaan/Library/Logs/Homebrew/libassuan... (68B)
Removing: /Users/armaan/Library/Logs/Homebrew/libksba... (68B)
Removing: /Users/armaan/Library/Logs/Homebrew/npth... (68B)
Removing: /Users/armaan/Library/Logs/Homebrew/pinentry... (68B)
Removing: /Users/armaan/Library/Logs/Homebrew/pv... (68B)
Pruned 0 symbolic links and 2 directories from /usr/local
==> Caveats
==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

For pkg-config to find openssl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

==> qt@4
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.

Phonon is not supported on macOS Sierra or with Xcode 8.

WebKit is no longer included for security reasons. If you absolutely
need it, it can be installed with `brew install qt-webkit@2.3`.
Warning: libksba 1.3.5 is already installed and up-to-date
To reinstall 1.3.5, run `brew reinstall libksba`
Warning: openssl 1.0.2r is already installed and up-to-date
To reinstall 1.0.2r, run `brew reinstall openssl`
Warning: libffi 3.2.1 is already installed and up-to-date
To reinstall 3.2.1, run `brew reinstall libffi`
==> Downloading https://homebrew.bintray.com/bottles/cmake-3.14.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cmake-3.14.0.sierra.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake
==> Summary
🍺  /usr/local/Cellar/cmake/3.14.0: 5,680 files, 54MB
==> Installing dependencies for rbenv: ruby-build
==> Installing rbenv dependency: ruby-build
==> Downloading https://github.com/rbenv/ruby-build/archive/v20190320.tar.gz
==> Downloading from https://codeload.github.com/rbenv/ruby-build/tar.gz/v20190320
######################################################################## 100.0%
==> ./install.sh
🍺  /usr/local/Cellar/ruby-build/20190320: 440 files, 221.7KB, built in 10 seconds
==> Installing rbenv
==> Downloading https://homebrew.bintray.com/bottles/rbenv-1.1.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring rbenv-1.1.2.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/rbenv/1.1.2: 36 files, 65.1KB
==> Downloading https://homebrew.bintray.com/bottles/libyaml-0.2.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libyaml-0.2.2.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/libyaml/0.2.2: 9 files, 299.6KB
==> Caveats
==> cmake
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake
Installing Ruby
ruby-build: use openssl from homebrew
Downloading ruby-2.4.2.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.2.tar.bz2
Installing ruby-2.4.2...
ruby-build: use readline from homebrew
Installed ruby-2.4.2 to /Users/armaan/.rbenv/versions/2.4.2

Installing COSMOS gem
Fetching: bundler-1.17.3.gem (100%)
Successfully installed bundler-1.17.3
Fetching: method_source-0.9.2.gem (100%)
Successfully installed method_source-0.9.2
Fetching: coderay-1.1.2.gem (100%)
Successfully installed coderay-1.1.2
Fetching: pry-0.12.2.gem (100%)
Successfully installed pry-0.12.2
Fetching: yard-0.9.18.gem (100%)
--------------------------------------------------------------------------------
As of YARD v0.9.2:

RubyGems "--document=yri,yard" hooks are now supported. You can auto-configure
YARD to automatically build the yri index for installed gems by typing:

    $ yard config --gem-install-yri

See `yard config --help` for more information on RubyGems install hooks.

You can also add the following to your .gemspec to have YARD document your gem
on install:

    spec.metadata["yard.run"] = "yri" # use "yard" to build full HTML docs.

--------------------------------------------------------------------------------
Successfully installed yard-0.9.18
Fetching: pry-doc-0.13.5.gem (100%)
Successfully installed pry-doc-0.13.5
Fetching: uuidtools-2.1.5.gem (100%)
Successfully installed uuidtools-2.1.5
Fetching: snmp-1.3.1.gem (100%)
Successfully installed snmp-1.3.1
Fetching: rubyzip-1.2.2.gem (100%)
Successfully installed rubyzip-1.2.2
Fetching: mini_portile2-2.4.0.gem (100%)
Successfully installed mini_portile2-2.4.0
Fetching: nokogiri-1.10.2.gem (100%)
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.10.2
Fetching: opengl-bindings-1.6.8.gem (100%)
Successfully installed opengl-bindings-1.6.8
Fetching: qtbindings-4.8.6.5.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing cosmos:
    ERROR: Failed to build gem native extension.

    current directory: /Users/armaan/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5
/Users/armaan/.rbenv/versions/2.4.2/bin/ruby -r ./siteconf20190328-98715-1wawcg6.rb extconf.rb

current directory: /Users/armaan/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5
make "DESTDIR=" clean
mkdir ext/build
mkdir bin/2.4
mkdir bin/plugins
mkdir bin/plugins/accessible
mkdir bin/plugins/bearer
mkdir bin/plugins/codecs
mkdir bin/plugins/designer
mkdir bin/plugins/graphicssystems
mkdir bin/plugins/iconengines
mkdir bin/plugins/imageformats
mkdir bin/plugins/phonon_backend
mkdir bin/plugins/qmltooling
mkdir bin/plugins/sqldrivers
mkdir lib/2.4
cd ext/build; rm -rf CMakeFiles
cd ext/build; rm -rf generator
cd ext/build; rm -rf smoke
cd ext/build; rm -rf ruby
cd ext/build; rm *
rm: *: No such file or directory
make: [clean] Error 1 (ignored)

current directory: /Users/armaan/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5
make "DESTDIR="
mkdir ext/build
mkdir: ext/build: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/2.4
mkdir: bin/2.4: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/plugins
mkdir: bin/plugins: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/plugins/accessible
mkdir: bin/plugins/accessible: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/plugins/bearer
mkdir: bin/plugins/bearer: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/plugins/codecs
mkdir: bin/plugins/codecs: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/plugins/designer
mkdir: bin/plugins/designer: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/plugins/graphicssystems
mkdir: bin/plugins/graphicssystems: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/plugins/iconengines
mkdir: bin/plugins/iconengines: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/plugins/imageformats
mkdir: bin/plugins/imageformats: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/plugins/phonon_backend
mkdir: bin/plugins/phonon_backend: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/plugins/qmltooling
mkdir: bin/plugins/qmltooling: File exists
make: [makedirs] Error 1 (ignored)
mkdir bin/plugins/sqldrivers
mkdir: bin/plugins/sqldrivers: File exists
make: [makedirs] Error 1 (ignored)
mkdir lib/2.4
mkdir: lib/2.4: File exists
make: [makedirs] Error 1 (ignored)
cd ext/build; rm -rf CMakeFiles
cd ext/build; rm -rf generator
cd ext/build; rm -rf smoke
cd ext/build; rm -rf ruby
cd ext/build; rm *
rm: *: No such file or directory
make: [clean] Error 1 (ignored)
cd ext/build; \
cmake -DCMAKE_MINIMUM_REQUIRED_VERSION=2.6 \
-G "Unix Makefiles" \
-Wno-dev \
-DRUBY_EXECUTABLE=/Users/armaan/.rbenv/versions/2.4.2/bin/ruby \
..
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/FindQt4.cmake:1314 (message):
  Found unsuitable Qt version "5.6.2" from /anaconda3/bin/qmake, this code
  requires Qt 4.x
Call Stack (most recent call first):
  generator/CMakeLists.txt:3 (find_package)

-- Configuring incomplete, errors occurred!
See also "/Users/armaan/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5/ext/build/CMakeFiles/CMakeOutput.log".
make: [build] Error 1 (ignored)
cd ext/build; make
make[1]: *** No targets specified and no makefile found.  Stop.
make: *** [build] Error 2

make failed, exit code 2

Gem files will remain installed in /Users/armaan/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5 for inspection.
Results logged to /Users/armaan/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0/qtbindings-4.8.6.5/gem_make.out
Install and run COSMOS demo (Yn): n
MacBookPro-2:OreSat armaan$ 
ghost commented 5 years ago

Installing onto a system that also has Qt 5 installed is not supported. I would recommend uninstalling qt5, installing COSMOS, and then trying to reinstall qt5.

merchantzain commented 5 years ago

@ryanatball Is qt5 support a feature currently in development?

ghost commented 5 years ago

No Qt5 support is not currently in the works. The next major release of COSMOS, COSMOS 5, is planned to have a web based interface.