Comments (4)
@martinberanek From what you can get on google:
"The program can't start because MSVCR120.dll is missing from your computer. Try reinstalling the program to fix this problem."
If you get that error, download the Visual C++ Redistributable Packages for Visual Studio 2013:
http://www.microsoft.com/en-us/download/details.aspx?id=40784.
The vcredist_x86.exe you will need if you are running the 32-bit version of PostgreSQL 9.4 and the vcredist_x64.exe is generally the one you want if you are running the 64-bit PostgreSQL 9.4beta1.
I'm not sure this will help, but you can try anyway.
from postgresql-embedded.
MSVCR120.dll comes with jre 1.8, so all you need to do is extend 'Path' environment variable in onBeforeProcessStart with jre\bin.
Something like this (in Kotlin) :
override fun onBeforeProcessStart(processBuilder: ProcessBuilder?, config: PostgresConfig?, runtimeConfig: IRuntimeConfig?) {
super.onBeforeProcessStart(processBuilder, config, runtimeConfig)
processBuilder?.environment()?.let { env ->
env["Path"] = env["Path"].orEmpty() + ";${env["JAVA_HOME"]!!}\\jre\\bin"
}
}
from postgresql-embedded.
@Tapac thank you for the suggestion. I'll try to use it a bit later.
Btw it would be great if you could send the PR (but not in Kotlin :) ).
from postgresql-embedded.
I'm closing this one, since there's no answer. Feel free to reopen if it's still actual.
from postgresql-embedded.
Related Issues (20)
- Update de.flapdoodle.embed.process to 2.0.3 HOT 6
- Failed to read PID file HOT 7
- "Possibly failed to run initdb" - Windows HOT 5
- Configurable timeout when starting
- stop postgresql on shutdown not working
- ETA on 2.10 release? HOT 2
- Cached server path fails to find PID on Unix HOT 9
- postgresql-embedded fails to start in travis environment HOT 2
- Cannot install extensions anymore... HOT 1
- Postgres 11.1 for Linux HOT 5
- "restoreFromFile" executes more hour HOT 1
- java.lang.NoSuchFieldException: handle thrown possible because of JDK11 HOT 7
- Add start method which takes IRuntimeConfig without List<String> additionalParams
- How to run this on a buildserver through jenkins (postmaster.pid does not exist)? HOT 4
- JSON functions support
- Mac OS "No space left on device" on local tests
- Download via SSL possible?
- Download of DB broken with 403 HOT 1
- PgSQL version upgrade, Feb 14, 2019 releases
- Version.V11_1 Not Working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgresql-embedded.