|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Anyone succeeded in installing pgadmin4 on OpenBSD 7.1?
I'm trying to install pgadmin4 on OpenBSD using Python3.9
pip always fail trying to install cryptography 3.4.8 with the following error: Code:
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects |
|
|||
I never installed that, but there is a port of an earlier version: https://openports.pl/search?file=&de...y=&maintainer=
Code:
Search result pgadmin3-1.22.1p8 - administration and development platform for PostgreSQL phpPgAdmin-5.6.0p1 - tool to handle the administration of PostgreSQL over the web EDIT: Nope According to https://www.pgadmin.org/download/ version 4 is: Quote:
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump Last edited by J65nko; 27th August 2022 at 09:56 PM. |
|
|||
Like they said here: https://cryptography.io/en/latest/in...rted-platforms
I have make sure I have OpenSSl and libffi installed. It look like the error is related to openSSl. Code:
build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:983:14: error: typedef redefinition with different types ('void' vs 'struct sct_st') typedef void SCT; ^ /usr/include/openssl/ossl_typ.h:190:23: note: previous definition is here typedef struct sct_st SCT; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1055:11: error: incomplete definition of type 'struct dh_st' if (dh->q) { ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1056:22: error: incomplete definition of type 'struct dh_st' if (BN_cmp(dh->g, BN_value_one()) <= 0) ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1058:27: error: incomplete definition of type 'struct dh_st' else if (BN_cmp(dh->g, dh->p) >= 0) ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1058:34: error: incomplete definition of type 'struct dh_st' else if (BN_cmp(dh->g, dh->p) >= 0) ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1062:35: error: incomplete definition of type 'struct dh_st' if (!BN_mod_exp(t1, dh->g, dh->q, dh->p, ctx)) ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1062:42: error: incomplete definition of type 'struct dh_st' if (!BN_mod_exp(t1, dh->g, dh->q, dh->p, ctx)) ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1062:49: error: incomplete definition of type 'struct dh_st' if (!BN_mod_exp(t1, dh->g, dh->q, dh->p, ctx)) ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1067:30: error: incomplete definition of type 'struct dh_st' r = BN_is_prime_ex(dh->q, BN_prime_checks, ctx, NULL); ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1073:31: error: incomplete definition of type 'struct dh_st' if (!BN_div(t1, t2, dh->p, dh->q, ctx)) ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1073:38: error: incomplete definition of type 'struct dh_st' if (!BN_div(t1, t2, dh->p, dh->q, ctx)) ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1077:15: error: incomplete definition of type 'struct dh_st' if (dh->j && BN_cmp(dh->j, t1)) ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1077:31: error: incomplete definition of type 'struct dh_st' if (dh->j && BN_cmp(dh->j, t1)) ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1080:29: error: incomplete definition of type 'struct dh_st' } else if (BN_is_word(dh->g, DH_GENERATOR_2)) { ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1081:27: error: incomplete definition of type 'struct dh_st' l = BN_mod_word(dh->p, 24); ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1086:29: error: incomplete definition of type 'struct dh_st' } else if (BN_is_word(dh->g, DH_GENERATOR_5)) { ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1087:27: error: incomplete definition of type 'struct dh_st' l = BN_mod_word(dh->p, 10); ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1095:26: error: incomplete definition of type 'struct dh_st' r = BN_is_prime_ex(dh->p, BN_prime_checks, ctx, NULL); ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ build/temp.openbsd-7.1-amd64-cpython-39/_openssl.c:1100:17: error: incomplete definition of type 'struct dh_st' else if (!dh->q) { ~~^ /usr/include/openssl/ossl_typ.h:116:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. |
|
|||
OK, I think I found the problem! OpenBSD default libreSSL library is 3.5.2 and this version of python Cryptography 3.4.8 need an earlier version of it! So I probably need to tell python to use openssl11!
I'm far from a pyhton expert will search how to do that! Last edited by srivo; 28th August 2022 at 04:37 PM. Reason: change openSSL for libreSSl |
|
||||
You may need to actually use a packaged version of OpenSSL. OpenBSD replaced OpenSSL with LibreSSL in 2014.
Note the warning I've highlighted below. I've also redacted the ports@ mailing list to avoid email scrapers: Code:
$ pkg_info openssl-3.0.5 Information for http://cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/openssl-3.0.5.tgz Comment: TLS/SSL library and tools Description: OpenSSL is an open-source toolkit implementing the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols as well as a full-strength general purpose cryptography library. This package is not intended for general-purpose use in OpenBSD - it is present for test/comparison purposes, and occasionally to provide support for applications which cannot be made compatible with LibreSSL (mostly due to use of removed APIs); in the latter case care must be taken - it will conflict if library dependencies use LibreSSL libraries. Maintainer: The OpenBSD ports mailing-list <ports@ [redacted]> WWW: https://www.openssl.org/ $ |
|
|||
Ok thanks!
I think the solution will be to put the openSSL library in the Python virtual environment to avoid conflict. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Re-installing OpenBSD | stanl | OpenBSD Installation and Upgrading | 13 | 19th August 2022 07:25 AM |
Installing KDE on OpenBSD 5.2 | EverydayDiesel | OpenBSD General | 3 | 17th January 2013 11:25 PM |
Installing Cacti on OpenBSD 4.9 | ai-danno | Guides | 6 | 23rd September 2011 06:59 PM |
OpenBSD installing OpenBSD from USB | ocicat | News | 5 | 5th April 2010 10:51 PM |
installing openbsd | bsdnewbie999 | OpenBSD Installation and Upgrading | 12 | 4th May 2009 11:55 AM |