Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"brew install jsoncpp" installs wrong architecture #15

@vin-d

Description

@vin-d

Hi,
I'm on a Ubuntu 16.04 x86_64 architecture and when I do "brew install jsonpp" it installs the os x version :-/

what's the source of this problem and how to fix it ?

here's the details :

vincent@vincent-UX305UA:~/.linuxbrew/bin$ brew remove jsonpp
Uninstalling /home/vincent/.linuxbrew/Cellar/jsonpp/1.3.0... (5 files, 2MB)
vincent@vincent-UX305UA:~/.linuxbrew/bin$ linuxbrew install jsonpp
==> Downloading https://github.com/jmhodges/jsonpp/releases/download/1.3.0/jsonpp-1.3.0-osx-x86_64.zip
Already downloaded: /home/vincent/.cache/Homebrew/jsonpp-1.3.0.zip
🍺  /home/vincent/.linuxbrew/Cellar/jsonpp/1.3.0: 5 files, 2MB, built in 0 seconds
vincent@vincent-UX305UA:~/.linuxbrew/bin$ ll /home/vincent/.linuxbrew/Cellar/jsonpp/1.3.0
total 28
drwxrwxr-x 4 vincent vincent 4096 sep  4 08:46 ./
drwxrwxr-x 3 vincent vincent 4096 sep  4 08:46 ../
drwxrwxr-x 2 vincent vincent 4096 sep  4 08:46 bin/
drwxrwxr-x 2 vincent vincent 4096 sep  4 08:46 .brew/
-rw-rw-r-- 1 vincent vincent  583 sep  4 08:46 INSTALL_RECEIPT.json
-rw-r--r-- 1 vincent vincent 1055 mai  1  2016 LICENSE
-rw-r--r-- 1 vincent vincent 1115 oct 13  2016 README.md
vincent@vincent-UX305UA:~/.linuxbrew/bin$ ll /home/vincent/.linuxbrew/Cellar/jsonpp/1.3.0/bin
total 2136
drwxrwxr-x 2 vincent vincent    4096 sep  4 08:46 ./
drwxrwxr-x 4 vincent vincent    4096 sep  4 08:46 ../
-r--r--r-- 1 vincent vincent 2177168 oct 13  2016 jsonpp
vincent@vincent-UX305UA:~/.linuxbrew/bin$ chmod ugo+x /home/vincent/.linuxbrew/Cellar/jsonpp/1.3.0/bin/jsonpp 
vincent@vincent-UX305UA:~/.linuxbrew/bin$ ll /home/vincent/.linuxbrew/Cellar/jsonpp/1.3.0/bin/jsonpp 
-r-xr-xr-x 1 vincent vincent 2177168 oct 13  2016 /home/vincent/.linuxbrew/Cellar/jsonpp/1.3.0/bin/jsonpp*
vincent@vincent-UX305UA:~/.linuxbrew/bin$  /home/vincent/.linuxbrew/Cellar/jsonpp/1.3.0/bin/jsonpp 
bash: /home/vincent/.linuxbrew/Cellar/jsonpp/1.3.0/bin/jsonpp: cannot execute binary file: Exec format error
vincent@vincent-UX305UA:~/.linuxbrew/bin$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions