when starting mongod.exe on windows 7, getting error - mongodb

when starting mongod.exe on windows 7, getting error
"The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem. ".

The problem is related to your Windows update. You have to update your current Windows(here Windows 7) version until no updates available.
First, install Windows update KB2999226. Then install Microsoft Visual C++ 2015 redist (vc_redist.x64 or vc_redist.x32). Restart the PC and run MongoDB mongod.
Please follow these links:
api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Microsoft Office file
when starting mongod.exe, getting error of missing api-ms-win-crt-runtime-l1-1-0.dll
https://jira.mongodb.org/browse/SERVER-27606?jql=Participants%20%3D%20hotcola

Related

WSL2 VSCode Will Not Load After Ubuntu upgrade - Worked fine for 1 year

Running Windows 11, WSL2, Ubuntu 20.04. Been developing with VSCode over a year. I regularly run apt update and apt upgrade without any problem. Today after running apt upgrade I can no longer open VSCode. I get the following error
node:internal/modules/cjs/loader:990
throw err;
^
Error: Cannot find module '\wsl.localhost\Ubuntu-20.04\mnt\c\Users\JimD\AppData\Local\Programs\Microsoft VS Code\Code.exe'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:987:15)
at Module._load (node:internal/modules/cjs/loader:832:27)
at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
That is the correct path to the VSCode exe, but I am not sure about the \wsl.localhost\Ubuntu-20.04 part
I rolled back my wsl to an month old backup and confirmed VSCode ran fine. Ran apt update and upgrade on that and get the same error.
Does anyone know how to fix this?
Starting from a functioning backup of the WSL image, I manually installed each packaged listed from apt list --upgradable. Turns out it is the upgrade from systemd-genie 2.3 to 2.4 that is causing the problem.
If I upgrade every other package, VSCode still loads. When I upgrade systemd-genie to 2.4 and restart my laptop, VSCode will not load giving the error in the original post.
edit /usr/lib/binfmt.d/WSLInterop.conf, change flag PF to F, reboot wsl seems able to let you run code again, but not sure whether any other side-effects exists.
My final solution was to just not use systemd. With the release of Windows 11, a new feature has been added to WSL to runs scripts on WSL startup. This feature is now also available to Windows 10 users if you install WSL from the Microsoft Store (requires KB5020030, which should be available under Optional Updates).
create the file /etc/wsl.conf and the following
[boot]
command = bash /etc/[path to startup script]
in my case I used the path "/etc/wsl-services-start.sh" This shell script contains only
service apache2 start
service mysql start
Starting apache2 and mysql was the only thing I needed systemd for, so this works fine for me.

EasyPHP Devserver v17.0 Windows 10 Install

I installed EasyPHP Devserver v17.0 on new laptop and I get a message that code execution cannot proceed because MSVCR110.dll was not found when attempting to start. I reinstalled and get the same error. I found the dll on my system.
Directory of C:\Windows\System32
11/05/2012 10:26 PM 849,360 msvcr110.dll
1 File(s) 849,360 bytes
What do I do to resolve this startup issue?
PS
I have it running successfully on a different Windows 10 laptop just fine and did not do anything different when I did the install??
I dug deeper and found a previous answer under Easyphp : msvcr110.dll is missing.
I downloaded and installed the Visual C++ Redistributable for Visual Studio 2012 is also required. Here's the download link for that one: microsoft.com/en-us/download/details.aspx?id=30679
Sorry for the "unnecessary question.

when starting mongod.exe, getting error of missing api-ms-win-crt-runtime-l1-1-0.dll

when starting mongod.exe on windows 7, getting error
"The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer.
Try reinstalling the program to fix this problem. ".
After installing VC ++ .net framework and vc_redist.x64, but still no luck. Any ideas how to solve my problem.
First install Window Update KB2999226 or download it from here according to your OS. then install Microsoft Visual C++ 2015 redist (vc_redist.x64 in your case). Restart the pc and run mongodb files(mongod or any).
Download Visual C++ Redistributable from
https://www.microsoft.com/en-in/download/details.aspx?id=48145
After installation, try to rerun mongo.exe.

Mongodb server start for latest version

I followed all the steps for installing which could be found here https://www.mkyong.com/mongodb/how-to-install-mongodb-on-windows/ and got:
"The program cant start because api-ms-win-crt-runtime-|1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem. "
MSI file name :- mongodb-win32-x86_64-2008plus-ssl-3.4.1-signed.msi
Just install this component: "Visual C++ Redistributable for Visual Studio 2015" from here https://www.microsoft.com/en-us/download/details.aspx?id=48145 (about 14MB) and install it. This helps.

Can't install PostgreSQL: An error occurred executing the Microsoft VC++ runtime installer on Windows XP

I downloaded installer postgresql-9.0.1-1-windows.exe from the official site, ran it, and then got an error:
An error occurred executing the Microsoft VC++ runtime installer
What is the reason for this error message?
Platform: Windows XP SP3, Dell Inspiron 1501. Processor: AMD Sempron 3500+
One of the reasons this can happen is because the installer attempts to install an older version of the VC++ runtime than what you are currently using.
See this installation log, found in your user's temporary directory (e.g. dd_vcredist_amd64_20190214193107.log):
[20C0:20E4][2019-02-14T19:31:07]e000: Error 0x80070666: Cannot install a product when a newer version is installed.
A workaround is to prevent the runtimes from installing with the --install_runtimes option:
postgresql-9.6.12-1-windows-x64.exe --install_runtimes 0
Create a shortcut of the downloaded file:
Right click of the shortcut → Properties → Shortcut. Add --install_runtimes 0 to the end of the file path:
Create a shortcut of your EXE file;
right click on the shortcut → add --install_runtimes 0 at the end of the target path, e.g.:
postgresql-9.3.1-1-windows-x64.exe --install_runtimes 0
save and run it :)
I was having a similar issue and found a fix that worked for me from Garrett_H in this forum post:
http://forums.enterprisedb.com/posts/list/1747.page#6180
Go to file %windir%\inf\wsh.inf, right click and select 'Install'
re-run postgresql installer
I'm running Windows XP Pro, and I was trying to install postgresql-8.3.17-1-windows.exe. I originally received the following error:
An error occurred executing the Microsoft C++ runtime installer.
First download and install Microsoft Visual C++ from the Microsoft website. Then run the installation from command with --install_runtimes 0.
In my case, when I was installing postgresql-11.0-1-windows-x64.exe on Windows 10, I had faced the same problem.
I just uninstalled the Microsoft Visual C++ Redistributable (the latest one for both 32 and 64 bit) and then tried to install postgresql-11.0-1-windows-x64.exe again, and it worked for me.
I too faced the same issue. I fixed it in the following way:
I visited the below site:
https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
Choose the Download button under PostgreSQL Version 11.1 for Windows x86-64.
In one word, just try to install the latest version.
Try installing as administrator (using Run as administrator).
In version 9.0. PostgreSQL can be installed as a Windows administrator :)
Check if Windows Script Host (WSH) is enabled. If not enabled, details are here: PostgreSQL Installation Problem on Windows without WSH
Take special care that your Windows user's folder name does not contain spaces. PostgreSQL (as of version 9.2.2.1) handles that poorly. If I use this account on Windows XP, installation fails with the "An error occurred executing the Microsoft C++ runtime installer" message:
"C:\Documents and settings\Jimmy (admin)"
But it runs just fine with this:
"C:\Documents and settings\Jimmy-admin"
The spaces in "Documents and settings" don't seem to bother the installer. Go figure.
Go to file %windir%\inf\wsh.inf, right click, and select 'Install'.
Then re-run the PostgreSQL installer.
This works on Windows XP with PostgreSQL 8.4.17-1.
Windows Script Host (WSH) is unable to execute VBScript scripts. This can occur if the scripting host is disabled (which is unusual), or if the installation is broken. A sign of this problem is a message like
CScript Error: Can't find script engine "VBScript" for script "C:....
It can often be resolved by re-registering the VBScript interpreter, click Start * → * Run and enter the following and click OK:
regsvr32 %systemroot%\system32\vbscript.dll
I had the same problem while trying to install PostgreSQL version 11.1. I had to uninstall the Microsoft VC++ and run the installer again. It downloaded the required VC++ and the installation went successful.
I had these same problems and tried
manually installing MS VC++
bypassing VC++ installation on postgres
fixing windows update service
Still unsuccessful
Then I solved these problem by installing postgres manually:
extract the PostgreSQL installation contents to C:\PostgreSQL (you can copy from successful installation on other machines)
add C:\PostgreSQL\bin to PATH environment
run pg_ctl register -D D:\pgdata -N postgresql -U postgres -P <your postgres password>