Ankündigung

Einklappen
Keine Ankündigung bisher.

grafana und edomi - influx nötig?

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #31
    Zitat von Sargon Beitrag anzeigen
    [root@edomi influx-client]# ​composer require influxdata/influxdb-client-php:2.8 -bash: ​composer: Kommando nicht gefunden.
    Den Composer hattest du doch schon installiert und der hatte doch vorher funktioniert.

    Was sagt denn

    Code:
    php -v
    eigentlich muss php-mbstring installiert werden können, ansonsten wird der Fehler nicht verschwinden. Keine Ahnung warum das bei dir nicht geht.

    Ist das ne ganz normale bare-metal Installation? Oder ist das virtualisiert oder ein Container?
    Zuletzt geändert von jonofe; 17.10.2022, 10:24.

    Kommentar


      #32
      PHP 7.2.34 (cli) (built: Sep 27 2022 19:08:09) ( NTS )
      Copyright (c) 1997-2018 The PHP Group
      Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

      Ist eine Installation auf Blech auf einem APU2C4

      Ich hab leider keine Ahnung von Linux und steh hier vor Böhmischen Dörfern

      Kommentar


        #33
        Dann mach mal ein:

        Code:
        yum search mbstring
        und poste die Ausgabe hier.

        Kommentar


          #34
          [root@edomi influx-client]# yum search mbstring
          Geladene Plugins: fastestmirror
          Loading mirror speeds from cached hostfile
          * base: mirror.imt-systems.com
          * epel: mirror.imt-systems.com
          * extras: mirror.ratiokontakt.de
          * remi-php72: merlin.fit.vutbr.cz
          * remi-safe: merlin.fit.vutbr.cz
          * updates: mirror.imt-systems.com
          ================================================== ================= N/S matched: mbstring ================================================== =================
          php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
          php54-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
          php55-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
          php56-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
          php70-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
          php71-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
          php72-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
          php73-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
          php74-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
          php80-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
          php81-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
          php82-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling

          only-Übereinstimmungen in Name und Zusammenfassung, «Alles suchen» für vollständige Suche.

          Kommentar


            #35
            dann würde ich nochmal

            Code:
            yum install php72-php-mbstring
            ausführen. Eigentlich sollte das was passieren.

            Kommentar


              #36
              Hat geklappt wurde installiert.

              Soll ich jetzt die beiden Bereiche Composer und PHP Influx Client nochmal installieren oder was anderes?

              Composer
              ========
              cd /tmp
              wget --no-check-certificate https://getcomposer.org/installer
              php installer
              mv -f composer.phar /usr/local/bin/composer

              PHP Influx Client
              =================
              cd /usr/local/edomi/www/admin/include/php/
              mkdir influx-client
              cd influx-client/
              composer require influxdata/influxdb-client-php​

              Kommentar


                #37
                Composer sollte ja noch da sein.
                Also einfach den influx-client noch mal installieren:


                Code:
                rm -rf /usr/local/edomi/www/admin/include/php/influx-client
                mkdir /usr/local/edomi/www/admin/include/php/influx-client
                cd /usr/local/edomi/www/admin/include/php/influx-client
                ​composer require influxdata/influxdb-client-php:2.8​
                Evtl. auch mal ohne die ":2.8" versuchen.

                Kommentar


                  #38
                  geht leider immer noch nicht

                  Code:
                  [root@edomi tmp]# php installer
                  All settings correct for using Composer
                  Downloading...
                  
                  Composer (version 2.4.3) successfully installed to: /tmp/composer.phar
                  Use it: php composer.phar
                  
                  [root@edomi tmp]# mv -f composer.phar /usr/local/bin/composer
                  [root@edomi tmp]# rm -rf /usr/local/edomi/www/admin/include/php/influx-client
                  [root@edomi tmp]# mkdir /usr/local/edomi/www/admin/include/php/influx-client
                  [root@edomi tmp]# cd /usr/local/edomi/www/admin/include/php/influx-client
                  [root@edomi influx-client]# composer require influxdata/influxdb-client-php:2.8​
                  Do not run Composer as root/super user! See https://getcomposer.org/root for details
                  Continue as root/super user [yes]? yes
                  https://repo.packagist.org could not be fully loaded (curl error 28 while downloading https://repo.packagist.org/packages.json: timed out before SSL handshake), package information was loaded from the local cache and may be out of date
                  
                  In VersionParser.php line 521:
                  
                    Could not parse version constraint 2.8​: Invalid version string "2.8​"
                  
                  
                  require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
                  
                  [root@edomi influx-client]# cd /usr/local/edomi/www/admin/include/php/
                  [root@edomi php]# mkdir influx-client
                  mkdir: das Verzeichnis „influx-client“ kann nicht angelegt werden: Die Datei existiert bereits
                  [root@edomi php]# cd influx-client/
                  [root@edomi influx-client]# composer require influxdata/influxdb-client-php
                  Do not run Composer as root/super user! See https://getcomposer.org/root for details
                  Continue as root/super user [yes]? yes
                  Info from https://repo.packagist.org: #StandWithUkraine
                  Cannot use influxdata/influxdb-client-php's latest version 3.0.0 as it requires ext-mbstring * which is missing from your platform.
                  
                  In PackageDiscoveryTrait.php line 313:
                  
                    Package influxdata/influxdb-client-php has requirements incompatible with your PHP version, PHP extensions and Composer version:
                      - influxdata/influxdb-client-php 3.0.0 requires ext-mbstring * but it is not present.
                  
                  
                  require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
                  ​

                  Kommentar


                    #39
                    jetzt gehen mir so langsam die Ideen aus ...

                    Kommentar


                      #40
                      das hatte ich schon langsam befürchtet, dennoch vielen Dank für deinen Einsatz!!!!

                      Kommentar


                        #41
                        Hi, kann ich jetzt nicht genau sagen welche Version bei mir abgefragt wurde. Wie kann ich die Version abfragen?


                        Ich musste allerdings noch im Verzeichnis "/usr/local/edomi/www/admin/include/php/influx-client" folgendes ausführen:

                        Code:
                        composer require php-http/guzzle7-adapter
                        ​

                        Kommentar


                          #42
                          Zitat von benji Beitrag anzeigen
                          Wie kann ich die Version abfragen?
                          Sollte in der Datei /usr/local/edomi/www/admin/include/php/influx-client/vendor/influxdata/influxdb-client-php/CHANGELOG.md stehen.
                          Erste Zeile:

                          Code:
                          [root@edomi-dev ~]# cat /usr/local/edomi/www/admin/include/php/influx-client/vendor/influxdata/influxdb-client-php/CHANGELOG.md
                          ## 2.8.0 [2022-05-20]
                          Zuletzt geändert von jonofe; 18.10.2022, 11:25.

                          Kommentar


                            #43
                            Version 3.0 ist bei mir.

                            Zumindest steht dies so in der composer.json

                            Kommentar


                              #44
                              Zitat von benji Beitrag anzeigen
                              Version 3.0 ist bei mir.

                              Zumindest steht dies so in der composer.json
                              Ja, da sollte es auch stehen. Danke!

                              Kommentar


                                #45
                                kann ich jetzt noch was machen um es doch noch zum laufen zu bekommen? Ich versuchen heute Abend nochmal alle Steps auszuführen

                                Kommentar

                                Lädt...
                                X