pgrx icon indicating copy to clipboard operation
pgrx copied to clipboard

Maybe include some documentation about possibly installing/using `cargo pgx` in offline mode.

Open BradyBonnette opened this issue 2 years ago • 1 comments

This was brought up during a conversation regarding https://github.com/tcdi/pgx/issues/252

Specifically, there is no official documentation in regards to installing cargo pgx in offline mode, where the consensus at the moment is to "get the source code to pgx and run cargo install --path ./cargo-pgx or similar. However, this does not include any details about possibly getting crates and dependencies in an offline manner (such as "vendoring").

BradyBonnette avatar Aug 25 '22 21:08 BradyBonnette

hi PLease let me know if any possibility is there to install Promscale on server where internet doesn't exist. Since Cargo PGX is needed as pre-requisite to install Promscale however no offline binaries exist to install Cargo PGX . Please suggest how to install Cargo PGX on server without internet.

amitvermaa3101 avatar Sep 08 '22 12:09 amitvermaa3101

hi ,

Any update on this issue?

amitvermaa3101 avatar Oct 07 '22 10:10 amitvermaa3101

hi PLease let me know if any possibility is there to install Promscale on server where internet doesn't exist. Since Cargo PGX is needed as pre-requisite to install Promscale however no offline binaries exist to install Cargo PGX . Please suggest how to install Cargo PGX on server without internet.

You must build the cargo pgx binary for a machine with an equivalent hardware architecture and operating system, then copy it into somewhere accessible from the PATH on the server in question. Rust binaries generally do not need special installation otherwise, as they contain all of their components, except for the operating system. The cargo-pgx binary is a "cargo plugin" but that just means that when you call cargo pgx, you call cargo, and then cargo sets up the environment before running cargo-pgx, which means it needs to be able to find cargo-pgx in the PATH. You should make sure the cargo installation is the same version for both the cargo that builds cargo-pgx and for the cargo that will be used on the server.

workingjubilee avatar Oct 26 '22 18:10 workingjubilee