need libpq-dev lib for rpm-based distros, fix deprecated cargo command usage #90

Manually merged
igalic merged 3 commits from clasick/documentation:dev into dev 2020-09-14 21:01:55 +00:00
Contributor

There is an error when installing on Fedora (32) where during compilation, we can't find the libraries for postgresql.

note: /usr/bin/ld: cannot find -lpq

Installing libpq-dev using the command:

sudo dnf install libpq-dev

Fixes the error (even without a terminal or OS restart).

There is an error when installing on Fedora (32) where during compilation, we can't find the libraries for postgresql. ``` note: /usr/bin/ld: cannot find -lpq ``` Installing libpq-dev using the command: ``` sudo dnf install libpq-dev ``` Fixes the error (even without a terminal or OS restart).
kiwii reviewed 2020-08-29 15:33:08 +00:00
@ -5,3 +5,3 @@
```bash
# If you want PostgreSQL
dnf install postgresql-server postgresql-contrib libpqxx libpqxx-devel git curl gcc make openssl openssl-devel gettext clang-devel
dnf install postgresql-server postgresql-contrib libpqxx libpqxx-devel libpq-devel lib git curl gcc make openssl openssl-devel gettext clang-devel
Owner

Is lib a real package, or is it a typo?

Also, are libpqxx and libpqxx-devel still required (I guess these are the C++ libs, but Plume may only need the C versions)?

Is `lib` a real package, or is it a typo? Also, are `libpqxx` and `libpqxx-devel` still required (I guess these are the C++ libs, but Plume may only need the C versions)?
Author
Contributor

Oops, thanks for point that out, didn't realize that typo got in.

As for libpqxx and libpqxx-devel, after removing those 2 packages, what can I build to confirm whether they are still needed or not? Should I do front/back end, plm, and cli builds to make sure of this?

Oops, thanks for point that out, didn't realize that typo got in. As for `libpqxx` and `libpqxx-devel`, after removing those 2 packages, what can I build to confirm whether they are still needed or not? Should I do front/back end, plm, and cli builds to make sure of this?
Owner

xx are generally for C++ and should not be needed

xx are generally for C++ and should not be needed
Author
Contributor

@kiwii @igalic Can confirm now that the xx packages are not actually needed. Uninstalled both and was able to successfully run the build commands without any errors.

@kiwii @igalic Can confirm now that the xx packages are not actually needed. Uninstalled both and was able to successfully run the build commands without any errors.
Author
Contributor

Added another to fix deprecated usage of cargo install. If the existing command as specified in the documentation is used, it throws this error:

[vkk@vkk Plume]$ cargo install --no-default-features --features postgres -f
error: Using `cargo install` to install the binaries for the package in current working directory is no longer supported, use `cargo install --path .` instead. Use `cargo build` if you want to simply build the package.

Added --path . parameter to fix this.

Added another to fix deprecated usage of `cargo install`. If the existing command as specified in the documentation is used, it throws this error: ``` [vkk@vkk Plume]$ cargo install --no-default-features --features postgres -f error: Using `cargo install` to install the binaries for the package in current working directory is no longer supported, use `cargo install --path .` instead. Use `cargo build` if you want to simply build the package. ``` Added `--path .` parameter to fix this.
clasick changed title from need libpq-dev lib for Fedora to need libpq-dev lib for rpm-based distros, fix deprecated cargo command usage 2020-08-29 21:46:37 +00:00
Author
Contributor

@kiwii can we finish this pull request?

@kiwii can we finish this pull request?
igalic manually merged commit 6d02554fc7 into dev 2020-09-14 21:01:55 +00:00
Sign in to join this conversation.
No description provided.