Unable to install on a Raspberry Pi - Exec format error

Hello gang,

I'm attempting to run the installer script on a fresh set up of Raspbian, any idea what to do next?

$ ./pia-v79-installer-linux.sh 
./installer_linux/ruby/ruby.sh: 13: ./installer_linux/ruby/ruby.sh: ./installer_linux/ruby/32/ruby: Exec format error
$ dpkg -l | grep ruby
ii  libruby2.3:armhf                      2.3.3-1+deb9u1+rpi1                  armhf        Libraries necessary to run Ruby 2.3
ii  rake                                  10.5.0-2                             all          ruby make-like utility
ii  ruby                                  1:2.3.3                              armhf        Interpreter of object-oriented scripting language Ruby (default version)
ii  ruby-did-you-mean                     1.0.0-2                              all          smart error messages for Ruby > 2.3
ii  ruby-minitest                         5.9.0-1                              all          Ruby test tools supporting TDD, BDD, mocking, and benchmarking
ii  ruby-net-telnet                       0.1.1-2                              all          telnet client library
ii  ruby-power-assert                     0.3.0-1                              all          library showing values of variables and method calls in an expression
ii  ruby-test-unit                        3.1.7-2                              all          unit testing framework for Ruby
ii  ruby2.3                               2.3.3-1+deb9u1+rpi1                  armhf        Interpreter of object-oriented scripting language Ruby
ii  rubygems-integration                  1.11                                 all          integration of Debian Ruby packages with Rubygems

$ cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

The only other things I've done on this is configuring ssh and VNC.

Comments

  • "exec format error" suggests to me the ARM cpu you have is not the same as tha ARM cpu targeted by the PIA build you have.. can you run ruby on it's own (in case it's a cpu type mismatch with the ruby package you have)?
  • martouf said:
    can you run ruby on it's own (in case it's a cpu type mismatch with the ruby package you have)?
    Any commands to run in particular, any specific output you're looking for? Sorry, I'm not familiar with ruby (or any programming/scripting as such), so not really sure what to run? Just "# ruby" ?

    Thanks for responding, btw.
  • ruby --version would be a start. run it as a regular user.
  • The PIA app doesn't target ARM at all. That's why you're getting that error. The app is a bit heavyweight for a Raspberry Pi anyway honestly given the UI is a mini web browser.

    The best way for a Raspberry Pi would be either the NetworkManager setup (If you have a GUI), or just manually running OpenVPN as a service with our configuration ZIP. There's also someone on the forum that made a script that seems to work fairly well for a lot of users.
  • martouf said:
    ruby --version would be a start. run it as a regular user.

    $ ruby --version
    ruby 2.3.3p222 (2016-11-21) [arm-linux-gnueabihf]

    Max-P said:
    The PIA app doesn't target ARM at all. That's why you're getting that error. The app is a bit heavyweight for a Raspberry Pi anyway honestly given the UI is a mini web browser.

    The best way for a Raspberry Pi would be either the NetworkManager setup (If you have a GUI), or just manually running OpenVPN as a service with our configuration ZIP. There's also someone on the forum that made a script that seems to work fairly well for a lot of users.

    Thanks, will give those suggestions a shot!
  • thanks. ruby is running and not crashing. isn't the ARM mismatch for ruby problem i was thinking about
Sign In or Register to comment.