Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Lack of documentation about Rust for compiling the extension #247

Closed
emanzx opened this issue Sep 9, 2020 · 2 comments · Fixed by #260
Closed

Lack of documentation about Rust for compiling the extension #247

emanzx opened this issue Sep 9, 2020 · 2 comments · Fixed by #260
Assignees
Labels
Documentation Improvements or additions to documentation Question Further information is requested

Comments

@emanzx
Copy link

emanzx commented Sep 9, 2020

As freeBSD does not support any docker system apart from setting up VM and installing linux and installing docker in the linux I was compiling timescale-prometheus manually my last version is the 0.1.0-alpha.4 and the timescale_prometheus_extra was successfully compiled using gmake, today I update the version to 0.1.0-beta.4 and successfully compiled the timescale-prometheus but when I try to compiled and install the latest timescale_prometheus_extra I get the error as below: -

root@dnsvgitnpm:~/install/timescale-prometheus/extension # gmake clean
Makefile:57: warning: overriding recipe for target 'clean'
/usr/local/lib/postgresql/pgxs/src/makefiles/pgxs.mk:355: warning: ignoring old recipe for target 'clean'
rm -f timescale_prometheus_extra.so   libtimescale_prometheus_extra.a  libtimescale_prometheus_extra.pc
rm -f src/support.o src/support.bc
rm -f timescale_prometheus_extra.so
cargo clean
gmake: cargo: No such file or directory
gmake: *** [Makefile:59: clean] Error 127
root@dnsvgitnpm:~/install/timescale-prometheus/extension # gmake
Makefile:57: warning: overriding recipe for target 'clean'
/usr/local/lib/postgresql/pgxs/src/makefiles/pgxs.mk:355: warning: ignoring old recipe for target 'clean'
cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -fPIC -DPIC -DINCLUDE_PACKAGE_SUPPORT=0 -MMD -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal  -I/usr/local/include -I/usr/local/include -I/usr/local/include  -c -o src/support.o src/support.c
cargo build --release 
gmake: cargo: No such file or directory
gmake: *** [Makefile:54: target/release/libtimescale_prometheus_extra_rs.a] Error 127
root@dnsvgitnpm:~/install/timescale-prometheus/extension # gmake install
Makefile:57: warning: overriding recipe for target 'clean'
/usr/local/lib/postgresql/pgxs/src/makefiles/pgxs.mk:355: warning: ignoring old recipe for target 'clean'
cargo build --release 
gmake: cargo: No such file or directory
gmake: *** [Makefile:54: target/release/libtimescale_prometheus_extra_rs.a] Error 127

any Idea what could be the problem.
from my poor skill in compiling things I can see that cargo cannot find some file..

gmake: cargo: No such file or directory

but does not mentioned what file

@emanzx emanzx closed this as completed Sep 9, 2020
@emanzx emanzx reopened this Sep 9, 2020
@cevian
Copy link
Contributor

cevian commented Sep 9, 2020

Yes, this is a Rust thing. You need to install Rust to compile the extension. We need to update the documentation.

https://www.rust-lang.org/tools/install

@cevian cevian added Question Further information is requested Documentation Improvements or additions to documentation labels Sep 9, 2020
@cevian
Copy link
Contributor

cevian commented Sep 9, 2020

@JLockerman please add documentation for installing Rust

@cevian cevian changed the title timescale_prometheus_extra extension failed to compiled in FreeBSD Lack of documentation about Rust for compiling the extension Sep 9, 2020
cevian added a commit that referenced this issue Sep 16, 2020
Add text about dependencies on Rust and PostgreSQL headers.

Fixes #247
cevian added a commit that referenced this issue Sep 17, 2020
Add text about dependencies on Rust and PostgreSQL headers.

Fixes #247
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Improvements or additions to documentation Question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants