How shall i create and manage portable pgaudit extension for windows? I couldn't install with makefile.
This is the error below:
D:\pgxs.mk:85: D:/Windows/: Permission denied
D:\pgxs.mk:85: Files/PostgreSQL/12/lib/pgxs/src/makefiles/../../src/Makefile.global: No such file or directory
D:\pgxs.mk:224: /src/Makefile.shlib: No such file or directory
make: *** No rule to make target `/src/Makefile.shlib'. Stop.
I have not tried this but on Windows it is recommended to build this extension the following way according to https://github.com/pgaudit/pgaudit/issues/66
I have found that Postgres extensions on Windows are very sensitive to
exactly how they are built. I would try to build the extension by
dropping the pgaudit source code directory into a full Postgres source
code tree under "contrib", and then build the entire thing following
the docs for a Windows source build. Then take the resulting
pgaudit.dll and use that.
Related
i have problem when i install timescaledb.
i installed postgresql-15.2-1-windows-x64, timescaledb-postgresql-15_latest-windows-amd64.
i followed install manual.
but i have error message which is '오류: "C:/Program Files/PostgreSQL/15/lib/timescaledb-2.9.3.dll" 라이브러리를 불러 올 수 없음: The specified module could not be found.' when i write 'CREATE EXTENSION IF NOT EXISTS timescaledb;' on postgres cmd.
how can i fix it?
i tried that move files(ssleay32.dll , libeay32.dll) to C:\Program Files\PostgreSQL\15\bin folder.
but i have same problem.
Please, check if the configuration parameter shared_preload_libraries is in the postgresql.conf file and it matches the TimescaleDB .dll folder.
If the dll is not located there, you may need to move the library to the correct directory or update the configuration file to reflect the correct path.
Have you checked any different errors in the server logs?
Also, the troubleshooting doc can be useful: https://wiki.postgresql.org/wiki/Extension_build_troubleshooting
and a recent question on timescaledb forum: https://www.timescale.com/forum/t/how-to-install-timescale-db-on-window/1274
I want to use www_fdw extension of PostgreSQL in order to read data from web services. I used this command to create extension:
CREATE EXTENSION IF NOT EXISTS www_fdw CASCADE
but it gives me following error:
could not open extension control file "C:/Program Files
(x86)/PostgreSQL/9.6/share/extension/www_fdw.control": No such file or
directory
I am working in Windows.
Any idea whats the reason for error?
The problem was solved when I installed mingw64 and msys. I compiled postgresql server in my machine and I used the:
build packages for www_fdw:
http://www.postgresonline.com/journal/archives/361-Foreign-Data-Wrappers-for-PostgreSQL-9.5-windows.html
and copied the related folders in the related directories (bin, lib, share) in postgresql folder.
Thanks a-horse-with-no-name!
My erlang program directory structure is below:
src
pgtest.erl
lib
epgsql
rebar
I downloaded the epgsql library from https://github.com/epgsql/epgsql
then tried to build it with make which gave me the below error:
make: rebar: Command not found
make: *** [compile] Error 127
So then I downloaded rebar from https://github.com/basho/rebar and build it. It was build successfully and gave me the message.
Congratulations! You now have a self-contained script called "rebar"
in
your current working directory. Place this script anywhere in your path
and you can use rebar to build OTP-compliant apps.
So as per my understanding I copied the rebar script from the rebar directory to my epgsql directory and then tried to make again. However, I got the same error. I know I am doing it wrong, but not sure what to do?
You can see in the epgsql Makefile[1] that is defining the command as just rebar. If it were defined as ./rebar then it would work to put it in the same directory. Since it's not, you'll need to put it somewhere in your PATH, as the output of rebar's make instructed.
Erlang projects that include rebar itself will generally specify ./rebar, while those that don't will expect it in to be located somewhere in your PATH.
[1] https://github.com/epgsql/epgsql/blob/master/Makefile#L1
I am trying to use https://github.com/qiemem/ControlFlowExtension as an alternative to if-else.
I have it to added to the extensions folder(C:\Program Files (x86)\NetLogo 5.1.0\extensions). The extracted zipped folder from github.
In the NetLogo code I use the following,
extensions[ControlFlowExtension-master]
But it still shows me the following error:
There is no release for the extension yet. The zip file that you downloaded is just the source code and doesn't contain the compiled JAR files that you need to use the extension with NetLogo.
If you want to try it out, you will have to build it yourself. For that, you will need to install sbt. Then, open a command terminal and cd to the folder where you unzipped the file you downloaded from GitHub. This folder should be under the NetLogo extensions folder and be called cf (rename it if it is not the case). Once you are in the cf folder, run:
sbt package
This should build cf.jar and allow you to use the extension by putting
extensions [ cf ]
at the top of the code tab in your NetLogo model.
Be aware, though, that the extension is still very much experimental. There may be bugs. The syntax could still change. This is why Bryan did not put out an official release yet.
I already download postgis-2.1.5-5 from http://winnie.postgis.net/download/windows/pg94/buildbot
But, when I run CREATE EXTENSION sfcgal; I get this error:
ERROR: could not open extension control file "C:/Program Files/PostgreSQL/9.4/share/extension/sfcgal.control": No such file or directory SQL state: 58P01
How can I fix it?
As noted in the documentation, you should first install PostGIS, then execute postgis/sfcgal.sql to make available all sfcgal functions in postgresql.
Read the README.txt file at the root directory of the zip you've downloaded, it describes everything that should be done in order to be able to CREATE EXTENSION postgis under windows.