plr.dll: %1 is not a valid Win32 application - postgresql

I have Postgres version 10 installed running under windows 10 enterprise using the pl/r interface. It has been working nicely up till now. Now I get
ERROR: could not load library "C:/Program Files/PostgreSQL/10/lib/plr.dll": %1 is not a valid Win32 application.
error message. I tried to download and replace the Pl/r files (both the 64bit and the 32 bit versions), stopped/restarted the service, but it did not help. Any suggestions?

I found the cause: Rdotnet needed the 32bit version of R and I changed the path (and forgot all about it). The error message was misleading, because it R had the wrong version, not the plr.dll. (if I copied the 32bit version od the dll it still didn't work). So thanks for trying to help.

Related

libtorrent error on Windows XP

I'm trying to run a program on Windows XP using libtorrent 1.1.5 (compiled via boost 1.65.1) and get the error "The entry point to the CreateSemaphoreExW procedure was not found in the KERNEL32.dll DLL.". On Windows 7+ this works fine. How can I fix this error?
UPDATE:
_WIN32_WINNT=0x0501 solved the problem
The answer is simple- you can not fix it. Take a look at the official documentation.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682446(v=vs.85).aspx
Minimum supported client: Windows Vista. You can try to download a kernel32.dll from windows 7 and put it into the application directory, but I doubt it would work.

pgAdmin 4 not starting on Windows 10 64bit

After a fresh install of postgres 9.6.0.1 for Windows 10 64bit I am not able to get pgAdmin 4 starting.
First it throws an fatal error message:
After OK, that message appears:
Is there anything wrong? because after OK - the program won't start.
What can I do to get pgadmin 4 running? What should I enter in Python Path and what in Application Path?
I have found now the problem, it was the Java installation on which pgadmin 4 depend heavily.
In Windows when installing Java 8 (Java SE in this case) you do not have to use JAVA_HOME and JAVA_JRE anylonger and you can install java with default path settings (with the version number)
So I installed JAVA SDK 8 32 and 64bit and pgadmin start up normally.
The PATH variable includes only C:\ProgramData\Oracle\Java\javapath, thats all and let you use allways the latest version of java you installed.
In my case, I installed pgAdmin 4 v4.25 (released Aug. 20, 2020) . It solved my issue .
I had the same problem. I think, the installation of Visual C++ 2013 Redistributable is the source.
I fixed it uninstalling pgAdmin 4 and installing it again.
It tried to install Visual C++ 2013 Redistributable again, but it was already installed and now it works.
Hope this helps.
Try to install pgamin 4.5.1, it works for me (w10 x64) pgadmin 4.1.5
After struggling for weeks with this problem I found a solution. In my case I have Anaconda installed and maybe it affects PgAdmin in some way, I don't know. In order to start PgAdmin I followed these steps:
Open cmd and move to C:\Program Files\PostgreSQL\11\pgAdmin 4\web
Run pgAdmin4.py with your Python distribution. I had to install several libraries.
In my case, an error appeared, I needed to change Line #32 of C:\Program Files\PostgreSQL\11\pgAdmin 4\web\pgadmin\browser\__init__.py. More precisely:
from flask_security.views import _security, _commit, default_render_json, _ctx to
from flask_security.views import _security, _commit, _render_json, _ctx
Last, I needed to edited line socket module from Python libraries, gethostbyaddr(name) found non-ASCII symbols in the host name of my computer, I don't have any of them :S. Well, I changed line #687
hostname, aliases, ipaddrs = gethostbyaddr(name) to
hostname, aliases, ipaddrs = gethostbyaddr("")
After all of these steps I run pgAdmin4.py again and it worked.
Hope it helps.
For me there was no way to make it work (pgAdmin4 Version 4.21 that comes with Postgres 11.8 on Windows 10 x64). I really tried every possible solution.
So I gave up and found pgAdmin3 Redux: https://tokavuh.com/pgAdmin3Redux/ that supports Postgres 11, too.
You will probably have problems starting it, because of missing dll's from some Visual C++ Redistributable version I could not find out, but fortunately you will find these missing dll's on https://www.dll-files.com, just search them there as errors pops up.

Error talking to the Parse servers;please try again Windows 7

I'm using 64 bit Windows 7. I have downloaded the latest version of Parse.exe and ParseConsole.exe into a folder. When I run ParseConsole.exe and key in parse new command I'm getting this error:
Error talking to the parse servers;please try again
When I key in the command parse help I'm getting info.
Am I missing something? Do I need to install any other plugins? How should I get it to run without errors?
I also struggled a lot facing the same issue.
I was however able to solve the same.
Download the CLI from the website.
Go here and check if you have same version of parse.exe as downloaded or else replace the older one with this.
copy both of the files ( parse.exe and parseconsole.exe) into c:\windows\system32 for 32 bit operating system and into c:\windows\syswow64 for 64 bit operating system
open windows power shell and run it as administrator , test all your commands.
It should be working fine now :)

PHP Startup: unable to load dynamic library 'C:\xampp\php\ext\php_memcached.dll' -%1 is not a valid Win32 application

PHP Startup: unable to load dynamic library
'C:\xampp\php\ext\php_memcached.dll' -%1 is not a valid Win32
application.
This error is keep showing whenever I restart Apache Server(Using xampp).
I have installed memcached and started using command prompt, memcached.exe -d start and its running fine as I checked task manager.
Now, How to fix it? Am I not using right .dll file?
Try phpinfo() and check right on top, where it says Compiler, if you downloaded the correct VC8/9/10 32/64bit version of the .dll, exchange it - if needed - restart apache and you should be fine. Sometimes this can be a bit tedious to find the corresponding .dll's, good luck!
yes. regardless windows 64, 86 version nor non-thread safe version or other. Try all version to figure out if what version is suite for your xampp.

Error creating PLTCL language on binary windows (7) 64 bit Enterprise DB install

I just installed the latest Postgres binary from Enterprise DB and tried to install some user languages, and but it failed with the following errors:
postgres=# create language pltcl;
ERROR: could not load library "C:/Software/PostgreSQL/9.2/lib/pltcl.dll": The specified module could not be found.
postgres=# create language plperl;
ERROR: could not load library "C:/Software/PostgreSQL/9.2/lib/plperl.dll": %1 is not a valid Win32 application.
postgres=# select version();
PostgreSQL 9.2.4, compiled by Visual C++ build 1600, 64-bit
I have verified that there are dll's in the above locations, so I wonder if $libdir needs to have M$ windows backslashes instead of unix forward slashes? But I don't really know.
I would appreciate any ideas on how to fix. I am going to try a 32 bit install. THanks!
Thanks!
Windows raises the error "The specified module could not be found" when it really means "The specified module or, recursively, any DLL that it requires to be loaded could not be found"
In this case you probably don't have a suitable TCL runtime installed. Check the installer documentation to see what TCL version it needs.
%1 is not a valid Win32 application is likely because you have a 32-bit PostgreSQL trying to load a 64-bit perl DLL or vice versa. The Perl that's first on the PATH in the system environment needs to be of the same architecture as PostgreSQL, ie both 32-bit or both 64-bit.
In both these cases it will be informative to examine the plperl.dll and pltcl.dll files with Dependency Walker (depends.exe) from http://dependencywalker.com/ .. This tool will help you identify any missing or mismatched libraries.