Details

    Description

      when installing pypi pkg mariadb
      it fails with "OSError: mariadb_config not found"

      Wouldn't it be good to be able to install the package without this dependency (outside the package delivered files)?


      /bin/sh: mariadb_config: not found
      Traceback (most recent call last):
      File "<string>", line 5, in <module>
      File "setup.py", line 26, in <module>
      cfg = get_config(options)
      File "/build/mariadb-1.0.1/mariadb_posix.py", line 51, in get_config
      cc_version = mariadb_config(config_prg, "cc_version")
      File "/build/mariadb-1.0.1/mariadb_posix.py", line 28, in mariadb_config
      raise EnvironmentError(
      OSError: mariadb_config not found.
      Please make sure, that MariaDB Connector/C is installed on your system, edit the configuration file 'site.cfg' and set the 'mariadb_config'
      option, which should point to the mariadb_config utility.

      Attachments

        Activity

          Martine, mariadb_config is an external file provided by another package.

          What is your linux distro?

          If you're using CentOS, you can find it with
          yum whatprovides mariadb_config

          lucianobarcaro Luciano Barcaro added a comment - Martine, mariadb_config is an external file provided by another package. What is your linux distro? If you're using CentOS, you can find it with yum whatprovides mariadb_config
          ingatz Martine Weber added a comment -

          Won't I make sense that the package is not depending on previous installed libraries?

          distro:
          NixOS

          • system: `"x86_64-linux"`
          • host os: `Linux 5.7.10, NixOS, 20.03.2652.076c67fdea6 (Markhor)`
          • multi-user?: `yes`
          • sandbox: `yes`
          • version: `nix-env (Nix) 2.4pre20200622_334e26b`
          ingatz Martine Weber added a comment - Won't I make sense that the package is not depending on previous installed libraries? — distro: NixOS system: `"x86_64-linux"` host os: `Linux 5.7.10, NixOS, 20.03.2652.076c67fdea6 (Markhor)` multi-user?: `yes` sandbox: `yes` version: `nix-env (Nix) 2.4pre20200622_334e26b`
          georg Georg Richter added a comment -

          As mentioned in the documentation, as a prerequisite you have to install MariaDB Connector/C. Latest version is available on the MariaDB download site

          georg Georg Richter added a comment - As mentioned in the documentation, as a prerequisite you have to install MariaDB Connector/C. Latest version is available on the MariaDB download site
          ingatz Martine Weber added a comment -

          I'm using NixOS, I would need a link to the Github repo.
          The download file does not help

          ingatz Martine Weber added a comment - I'm using NixOS, I would need a link to the Github repo. The download file does not help
          ingatz Martine Weber added a comment -

          My question is, why you need that external dependency, wouldn't it be better to have all dependencies in the package? (Would be "cleaner", no?)

          ingatz Martine Weber added a comment - My question is, why you need that external dependency, wouldn't it be better to have all dependencies in the package? (Would be "cleaner", no?)

          People

            georg Georg Richter
            ingatz Martine Weber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.