RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    PowerBlock driver quick installation fails

    Scheduled Pinned Locked Moved ControlBlock, PowerBlock & Co.
    retro pipower blockraspberry pi
    8 Posts 3 Posters 966 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TacticalToast
      last edited by TacticalToast

      Hi all,

      I've ran into a problem I can't seem to figure out because of my novice knowledge of the raspberry pi. When I go to install the Power Block drivers following the instructions from the website here: https://github.com/petrockblog/PowerBlock#powerblock-driver using the quick installation method, I get an error message saying that it failed. I have Rasbian installed with retroPi installed as well. When the Pi boots, it goes to retro pi, then I have to manually get to the rasbian desktop through a port I created in the retro pi menu. Could this be the problem? Would I have to do a fresh install of either rasbian or retro pi so I only have one installed? Any help would be appreciated. Below is the terminal output:

      wget -O - https://raw.githubusercontent.com/petrockblog/PowerBlock/master/install.sh | sudo bash
      --2019-08-23 18:01:28--  https://raw.githubusercontent.com/petrockblog/PowerBlock/master/install.sh
      Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.184.133
      Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.184.133|:443... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 2358 (2.3K) [text/plain]
      Saving to: ‘STDOUT’
      
      -                   100%[===================>]   2.30K  --.-KB/s    in 0s      
      
      2019-08-23 18:01:29 (15.4 MB/s) - written to stdout [2358/2358]
      
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      Package dot is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source
      
      E: Package 'dot' has no installation candidate
      Error during installation of APT packages
      bash: line 12: pushd: /temp: No such file or directory
      --2019-08-23 18:01:30--  https://project-downloads.drogon.net/wiringpi-latest.deb
      Resolving project-downloads.drogon.net (project-downloads.drogon.net)... 188.246.205.22, 2a03:9800:10:7b::2
      Connecting to project-downloads.drogon.net (project-downloads.drogon.net)|188.246.205.22|:443... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 52260 (51K) [application/x-debian-package]
      Saving to: ‘wiringpi-latest.deb’
      
      wiringpi-latest.deb 100%[===================>]  51.04K   241KB/s    in 0.2s    
      
      2019-08-23 18:01:30 (241 KB/s) - ‘wiringpi-latest.deb’ saved [52260/52260]
      
      (Reading database ... 142595 files and directories currently installed.)
      Preparing to unpack wiringpi-latest.deb ...
      Unpacking wiringpi (2.52) over (2.52) ...
      Setting up wiringpi (2.52) ...
      Processing triggers for man-db (2.7.6.1-2) ...
      bash: line 15: popd: directory stack empty
      Cloning into 'PowerBlock'...
      remote: Enumerating objects: 49, done.
      remote: Counting objects: 100% (49/49), done.
      remote: Compressing objects: 100% (38/38), done.
      remote: Total 853 (delta 19), reused 29 (delta 11), pack-reused 804
      Receiving objects: 100% (853/853), 2.51 MiB | 0 bytes/s, done.
      Resolving deltas: 100% (287/287), done.
      Submodule 'src/lib/plog' (https://github.com/SergiusTheBest/plog.git) registered for path 'src/lib/plog'
      Cloning into '/home/pi/PowerBlock/src/lib/plog'...
      remote: Enumerating objects: 36, done.        
      remote: Counting objects: 100% (36/36), done.        
      remote: Compressing objects: 100% (21/21), done.        
      remote: Total 2366 (delta 13), reused 24 (delta 9), pack-reused 2330        
      Receiving objects: 100% (2366/2366), 359.00 KiB | 0 bytes/s, done.
      Resolving deltas: 100% (1356/1356), done.
      Submodule path 'src/lib/plog': checked out 'a248b2f9cb0755d6912a5b5e4e402a4921b3e978'
      /home/pi/PowerBlock/build /home/pi/PowerBlock
      -- The C compiler identification is GNU 6.3.0
      -- The CXX compiler identification is GNU 6.3.0
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /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: /usr/bin/c++
      -- Check for working CXX compiler: /usr/bin/c++ -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- JsonCpp Version: 1.7.7
      -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.13", minimum required is "2.6") 
      -- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
      CMake Error at doc/CMakeLists.txt:6 (MESSAGE):
        Doxygen is needed to build the documentation.
      
      
      -- Configuring incomplete, errors occurred!
      See also "/home/pi/PowerBlock/build/CMakeFiles/CMakeOutput.log".
      Error while generating Makefiles
      make: *** No targets specified and no makefile found.  Stop.
      Error during building binary
      make: *** No rule to make target 'install'.  Stop.
      Error during installation of binary
      make: *** No rule to make target 'installservice'.  Stop.
      Error during installation of service
      /home/pi/PowerBlock
      [ERROR] The PowerBlock driver binary is not installed
      [ERROR] The PowerBlock service is not running
      You can find the configuration file at /etc/powerblockconfig.cfg.
      
      
      1 Reply Last reply Reply Quote 0
      • P
        petrockblog Global Moderator
        last edited by

        It seems as if the installation script needs to be updated to accommodate for recent updates of the operating system.

        T M 2 Replies Last reply Reply Quote 0
        • T
          TacticalToast @petrockblog
          last edited by

          @petrockblog thanks for your reply! When do you think you be able to get that update for the installation script committed?

          1 Reply Last reply Reply Quote 0
          • M
            mikealves @petrockblog
            last edited by

            @petrockblog I'm having the same problem.

            1 Reply Last reply Reply Quote 0
            • P
              petrockblog Global Moderator
              last edited by

              I have just pushed the updated version of the driver to Github. The driver is now completely independent of wiringPi and only uses Linux sysfs.

              T 1 Reply Last reply Reply Quote 0
              • T
                TacticalToast @petrockblog
                last edited by

                @petrockblog Brillant works perfectly. Thanks for the hard work!

                1 Reply Last reply Reply Quote 0
                • P
                  petrockblog Global Moderator
                  last edited by

                  Glad to hear that!

                  1 Reply Last reply Reply Quote 0
                  • M
                    mikealves
                    last edited by

                    Worked for me too! Thanks!

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                    Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.