Re: [Seed7-users] Seed7 installation problems
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
From: Thomas M. <tho...@gm...> - 2021-02-10 17:55:36
|
Hi Anders, >From what I can see your manual build of Seed7 (without installer) works now. >From your previous mail I assume that your PostgreSQL 13 is installed in: C:/Program Files/PostgreSQL/13 I installed PostgreSQL on my windows computer and there it is at the same place. When I downloaded PostgreSQL I saw that there is just a 64-bit version of it. On a 64-bit Windows computer 64-bit programs are usually installed in: C:/Program Files and 32-bit programs are usually installed in C:/Program Files (x86) My older PostgreSQL 10 is 32-bit and it is installed in: C:/Program Files (x86)/PostgreSQL/10 In your version.h file the line: #define POINTER_SIZE 32 shows that your gcc is a 32-bit compiler. This is the reason why chkccomp.c does not find your PostgreSQL 13. This is on purpose as using a 64-bit dll from a 32-bit program will not work. The Seed7 installer seed7_05_20191117_win.exe uses a 32-bit gcc. I decided for 32-bit such that it works on 32-bit and 64-bit Windows versions. So you cannot use the gcc from the Seed7 installer. But it seems that you already did not use the installer. That means: Your locally installed MingGW gcc is 32-bit. You need to install a 64-bit MinGW (with a 64-bit gcc). With a 64-bit gcc you are also able to connect to PostgreSQL 13. On my Windows computer PostgreSQL 13 was recognized by chkccomp.c. I was able to come past this DATABASE_ERROR: Searching for dynamic libraries failed: libpq.dll It turned out that PostgreSQL 13 needs two more dlls in order to load libpq.dll: libcrypto-1_1-x64.dll libssl-1_1-x64.dll I have changed chkccomp.c and sql_post.c to search for these two dlls also. The definitions regarding PostgreSQL in version.h are: #define POSTGRESQL_DLL "C:\\Program Files/PostgreSQL/13/lib/libpq.dll", "C:\\Program Files/PostgreSQL/13/bin/libpq.dll", "libpq.dll", #define LIBINTL_DLL "C:\\Program Files/PostgreSQL/13/bin/libintl-8.dll", "libintl.dll", "libintl-8.dll", "libintl-9.dll", #define LIBEAY32_DLL "libeay32.dll", #define LIBCRYPTO_DLL "C:\\Program Files/PostgreSQL/13/bin/libcrypto-1_1-x64.dll", "libcrypto-1_1-x64.dll", #define LIBSSL_DLL "C:\\Program Files/PostgreSQL/13/bin/libssl-1_1-x64.dll", "libssl-1_1-x64.dll", I have attached the improved files chkccomp.c and sql_post.c. As soon as you have installed a 64-bit gcc you can replace chkccomp.c and sql_post.c with the attached files and try to build again. Don't forget to do a make clean before you start a new attempt to compile Seed7: make depend make I hope that helps. Regards Thomas Mertes |