MAMP unable to start servers (mysql,apache) - c++

I've been trying to start mysql and apache servers locally on my machine for a school homework with the help of MAMP3.2.1 but everytime I open MAMP, i get these errors:
From what i gathered from the net, this error appears when I'm installing 32bit software on a 64bit machine. Another report pointed on the error being caused by not having miscrosoft's visual c++ redistributable 2015 installed. I did that, but the error didn't go away. MAMP's only version for windows (I'm having 8.1) is 3.2.1 so I can't swap versions. Really any help would be much appreciated
Edit: I can't even intall the redistr packages right:

The problem is that the Universal CRT which is part of the Visual C++ Redistributable for Visual Studio 2015 failed to install or is missing.
Download the Visual C++ Redistributable:
For Windows 64-bit
Visual C++ Redistributable for Visual Studio 2015 (64-bit)
For Windows 32-bit
Visual C++ Redistributable for Visual Studio 2015 (32-bit)
Run the vc_redist.x64.exe (64-bit) or vc_redist.x86.exe (32-bit) to install it and it should work fine

Related

How can I set up Visual Studio 2017 to develop drivers?

According to this forum, https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/windows-wdk-on-visual-studio-2017-community/fdbd2b44-e57a-4849-903d-04001205a764
Windows Driver Kit is not currently supported by visual studio 2017.
I tried installing the Windows Driver Kit, but the test driver projects, such as this one, fail to build
https://github.com/Microsoft/Windows-driver-samples/tree/master/serial/VirtualSerial
I get this error when building:
Error MSB8020 The build tools for WindowsUserModeDriver10.0 (Platform Toolset = 'WindowsUserModeDriver10.0') cannot be found. To build using the WindowsUserModeDriver10.0 build tools, please install WindowsUserModeDriver10.0 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
I already tried retargeting the Solution to the two options I have: 10.0.17134.0 and 8.1, but the same error keeps coming up.
What do I need to do to build this sample driver? Do I need to install VS2015? VS2017 community edition? Why isn't this WDK supported by the Visual Studio 2017 professional version?
Thanks,
Visual Studio 2017 definitely supports kernel-mode device driver development; there's no doubt about that because I've been using VS17 for it for many, many months.
Use the latest version of Windows Driver Kit (WDK) which can be downloaded and installed from MSDN: https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
Furthermore, you can always use the Enterprise WDK and then you can simply build using that if you wanted to from command-line. (Also can be found on page linked-to above)
Download the correct WDK installer for your edition of Visual Studio 2017:
WDK for Windows 10, version 1809 for Visual Studio Community 2017
WDK for Windows 10, version 1803 for Visual Studio Professional 2017
WDK for Windows 10, version 1709 for Visual Studio Enterprise 2017
Visit https://learn.microsoft.com/en-us/windows-hardware/drivers/other-wdk-downloads for more information.
Not exactly a solution, but Windows 8.1 WDK works with Visual Studio 2017 Enterprise,
Download it from here, just need to retarget the project to 8.1
https://www.microsoft.com/en-us/download/confirmation.aspx?id=42273
In addition, I needed to get VS2015 C++ Build Tool to fix a missing Microsoft.cpp.props error
http://download.microsoft.com/download/5/F/7/5F7ACAEB-8363-451F-9425-68A90F98B238/visualcppbuildtools_full.exe
Developing drivers to windows is quite interesting one will be exposed to advanced Operating System Concepts.The set up for the environment will be IDE
IDE - Visual Studio (https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=16)
Compilers (WDK)
Debugger (WDK)
WDK contains both(https://go.microsoft.com/fwlink/?linkid=2085767). Latest Visual Studio(VS2019) will come along with the latest WDK(10, 1903 as of now).
Sometimes plugins might not work properly i.e integration issues between Visual Studio and WDk.
By going to the location "C:\Program Files (x86)\Windows Kits\10\Vsix\VS2019" and run VSIX installer.
Now in a new project, driver related templates are available.

WAMP Navigator Config Issue [duplicate]

I try to install wampserver3.0.6_x64 and I get the following message
the program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer
I have installed all the things
I read in StackOverflow that I need to install Universal C Runtime, but I can't install this.
I'd love to know how to fix it.
UPDATE:
Simplest Solution
Download a full set of MSVC runtimes from the WAMPServer alternate repo which can be found here Look at the bottom of the page, there is a download called All Visual C++ Redistribuable Packages (x86) (32bits) or All Visual C++ Redistribuable Packages (x86_x64) (32 & 64bits)
This will download a ZIP file containing all the possible required MSVC Runtime library installers. UnZip the file and run all the installers it exposes, in a logical order from lowest version to highest, one at a time.
I notice from your pictures that you have not installed any of the prerequisite MSVC Runtime libraries mentioned in the WAMPServer install process. So you will need to read this carefully and make sure your OS is fully capable of running any version of APache/MYSQL & PHP that can be installed with WAMPServer.
Before running a WAMPServer install, you must read these prerequisites:
BEFORE proceeding with an installation of Wampserver, you must ensure that you have current versions of all these Microsoft C/C++ Runtime Libraries, if you do not check and install any missing libraries before you install Wampserver it will not install correctly and will not run correctly!
If you installed WAMPServer without paying attention to the install Dialog specifying these pre-requisites your installation will be faulty and you will need to remove Wampserver BEFORE installing any missing Runtime Libraries. and then re-install WAMPServer when all runtimes are installed.
Make sure your system has "up to date" versions of ALL these redistributable packages:-
Microsoft Visual C/C++ Redistributable 2008 (VC9),
Microsoft Visual C/C++ Redistributable 2010 (VC10),
Microsoft Visual C/C++ Redistributable 2012 (VC11),
Microsoft Visual C/C++ Redistributable 2013 (VC13),
Microsoft Visual C/C++ Redistributable 2015 (VC14),
Microsoft Visual C/C++ Redistributable 2017 (VC15)
BIG NOTE:
If you are running a 64bit Windows, it is recommended to install both the 32bit and 64bit versions of these runtime libraries. Remember Windows 64bit can run 32bit code and also it is possible to install either a 32bit or 64 bit WAMPServer on a 64bit Windows OS.
If you are running Window pre windows 10, and you are running a component that uses Apache/Mysql/PHP compiled with MSVC 2015(VC14) you will also need to install the Universal C Runtime This can be download via the standard Windows Update according to this document on the microsoft site
---- Update for Universal C Runtime in Windows
Links to all these redistributables can be found later in this post to assist you in finding and installing them.
Suggestion:
Please download each one individually and then complete it's install before downloading the next. The filenames of the downloaded installers are almost always the same regardless of version, it is easy to get confused and miss one out.
Check in Control Panel -> Programs and Features that they are all installed before proceeding to install WAMPServer.
Visual C++ Packages
The following packages (VC9, VC10, VC11) are required for Wampserver 2.4, 2.5 and 3 even if you use only Apache and PHP versions VC11.
VC14 is required for Apache version 2.4.17 (or greater) and for PHP 7.
Where to find and download the MSVC Redistributable packages:
VC9 Redistributable
For Windows 2000 Service Pack 4; Windows Server 2003; Windows Server 2008; Windows Vista; Windows XP, W7, W8
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) (32 bits)
Microsoft Visual C++ 2008 SP1 Redistributable Package (x64) (64bits)
VC10 Redistributable
For Windows 7; Windows Server 2003; Windows Server 2008; Windows Server 2008 R2; Windows Vista; Windows XP
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
VC11 Redistributable
Note: VC11 or higher is not supported by Windows XP
Windows 7 Service Pack 1; Windows 8; Windows Server 2008 R2 SP1; Windows Server 2012; Windows Vista Service Pack 2
The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page:
Visual C++ Redistributable for Visual Studio 2012 Update 4 (x86 and x64)
VC13 Redistributable
Windows 7 Service Pack 1; Windows 8; Windows Server 2008 R2 SP1; Windows Server 2012; Windows Vista Service Pack 2
The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page:
Visual C++ Redistributable Packages for Visual Studio 2013
VC14 Redistributable (Required for Apache 2.4.17 and PHP 7)
Windows 10, Windows 7 Service Pack 1, Windows 8, Windows 8.1, Windows Server 2003 Service Pack 2, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2, Windows Server 2012, Windows Vista Service Pack 2
The two files vcredist_x86.exe et vcredist_x64.exe to be download are on the same page:
VC15 Redistribuable (Required for Apache 2.4.26)
Visual C++ Redistributable Packages for Visual Studio 2017 x86
Visual C++ Redistributable Packages for Visual Studio 2017 x64
VC2017 (VC15) is backward compatible to VC2015 (VC14). That means, a VC14 module can be used inside a VC15 binary. Because this compatibility the version number of the Redistributable is 14.1x.xx and after you install the Redistributable VC2017, VC2015 is removed but you can still use VC14.
Visual C++ Redistributable Packages for Visual Studio 2015 Update 3
Update for Universal C Runtime in Windows
Windows 10, Windows 7 Service Pack 1, Windows 8, Windows 8.1, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2, Windows Server 2012, Windows Vista Service Pack 2
Follow the links on this page for your specific environment
Update for Universal C Runtime in Windows
Note: If you installed WAMPServer before installing ALL these required runtimes, it is best to uninstall WAMPServer and then once all the runtimes are installed, reinstall WAMPServer
Simplest Solution
Download a full set of MSVC runtimes from the WAMPServer alternate repo which can be found here
Look at the bottom of the page, there is a download called All Visual C++ Redistribuable Packages (x86) (32bits) or All Visual C++ Redistribuable Packages (x86_x64) (32 & 64bits)
This will download a ZIP file containing all the possible required MSVC Runtime libraries. UnZip the file and run all the installers it exposes, in a logical order from lowest version to highest, one at a time.
Oh man, my customer has win7 and never updated. Took long time to run. Be careful people, you need SP1 on windows7 to install necessary vc packages

Microsoft Visual C++ 2015 Redistributable Setup Fails [0x80070652]

Installed Microsoft visual c++ 2015 redistributable exe before completion of the complete download in windows 7 pc. hence installation did not happen properly due to corrupt source. now i tried to uninstall and install again with the new exe the following error comes:
Microsoft Visual C++ 2015 Redistributable Setup Fails [0x80070652] - another installation is already in progress. complete that installation before proceeding to install.

Visual Studio c++ download and excecution for new computer with windows 8.1 64bit

I just bought a new computer, with Windows 8.1 64bit installed and wanted to start developing in C++.I am new to Visual Studio, I used to do it with eclipse but suggestions I found in the internet were to prefer Visual Studio.
I tried to download Visual Studio C++ 2008 redistributable package (x64) from here http://www.microsoft.com/en-us/download/details.aspx?id=15336.
But I couldn't find where it was stored in my computer, after searching it with key words. Then I uninstalled it, to install again from scratch.
To uninstall it I opened my control panel and it saw that I have Microsoft Visual C++ 2012 Redistributable (x86) installed already, assuming it comes with the computer I bought, and the date of installation matches this. I can't find though where it is stored so I can't open it.
When downloading Visual Studio 2008, it says I need to uninstall previous Visual Studio versions.
Bottom line:
Should I uninstall the Visual 2012 (x86) that probably came with the computer (which is 64bit)? Or should I use it (and try to find where is it located)?
If I shouldn't use the 2012: Was the 2008 version I tried to install good? (2008 gives an "old" intuition, but just my intuition).
Is there an easy way to find out where the application is located for excecution? Any specific file to look for?
thank you
You want to download thee actual Visual Studio IDE from http://www.visualstudio.com/ . Try downloading the free Community Edition for a start.
The Visual Studio redistributable packages are actually the minimal runtime libraries to run C++ programs that were compiled with visual studio. You got a version installed by default even on fresh computers, otherwise you can't run many programs (they are also included with the IDE).
The redistributables are also often bundled with installers to make sure that others can run your programs.
The VC++ Redistributable packages only include the libraries required to run applications built with the respective version of Visual Studio (for example Microsoft Visual C++ 2012 Redistributable is for Visual Studio 2012).
It does not include any version of Visual Studio.
You could uninstall Microsoft Visual C++ 2012 Redistributable (x86) but however as it was preinstalled on your computer, I imagine that some program pre-installed by the computer manufacturer requires it. It's probably not a good idea to remove that.
So no, it's not a good idea to remove it.
In order to use the 2012 version of Microsoft Visual C++ 2012 Redistributable you should install the vs120 compiler, aka the VC++ compiler that comes with Microsoft Visual Studio 2012.
For developing with Microsoft Visual Studio 2008, using Microsoft Visual C++ 2008 Redistributable is completely fine as it matches the compiler version. However if you want to use the newer 2010, 2012, 2013, and 2015 versions you need to use those respective versions of the Microsoft Visual C++ Redistributable.
If you wish to use an up-to-date version of Visual Studio, try the Visual Studio 2013 Community Edition, or if you're feeling adventurous try the Visual Studio 2015 Release Candidate.
The application you built is always located in the project's directory, under /Debug or /Release, depending on whether you built a debug or release version of the application. If you do not know where your project folder is located you may right-click your project in the File pane and click Open folder in Windows Explorer.

manifest is picking predifined redist

i am developing a software using Visual C++ 2008 Express Edition. after build in release mode, i have made a setup file with latest redist 2008. the software is running in my PC fine. in my PC this redist are installed :
in my friends PC, the same redist are installed. but the software is crashing on my friends PC.
from the event log it shows:
as you can see, it is demanding 9.0.21022.8 version of redist whether there is previously installed latest version of redist(9.0.30729.17). so, i go for a google. from the internet, i edit my C:\Program Files\Microsoft Visual Studio 9.0\VC\include\crtassem.h
but it didn't help. then i check my project manifest. and i saw :
but i don't know how to edit manifest (i am new in VC++). and i also check C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest. i shows:
i have tried to find out 9.0.21022.8 version of redist in the internet. but i have failed. from my VCExpress installer there is a file named vcredistmin_x86.exe :
as you can see the version of the file is 9.0.21022.8. i think this is the redist i need. but i cannot install it. it says "run the setup.exe file"
what can i do?
Edit(if i am asking two different answer from this question, please inform me. i will delete this edited part):
i am now wanting to deploy my project from Microsoft Visual studio 2008. i have uninstalled previous Microsoft Visual C++ 2008 express edition. but when i am trying to install Microsoft Visual studio 2008, it says
Installation Requirements:
A compatible version of Visual Studio 2008 was not detected on the
system. This update is designed for only the Microsoft Visual Studio
2008 (ENU) product family, and is not compatible with any Express
editions.
guys, have you any idea what to do?
From what I see this download is 9.0.21022.8: http://www.microsoft.com/en-us/download/details.aspx?id=29
I don't know about VS Express, in VS full version there are the vcredist_x86/x64/arm.exe available in the install directory (For VS2012: .../Microsoft Visual Studio 11.0\VC\redist\1033)
If it's acceptable for you, the simplest way to forget about this problems you can statically link with Runtime by changing your project properties: C/C++ -> Code Generation -> Runtime Library, select /MT or /MTd. Runtime library will be included into your executable so you won't have to install it on client machine.