RStudio: how to set the Git executable in Windows 7? - r

I'm using Windows 7 Enterprise on a work laptop.
I downloaded the GitHub Desktop app from the GitHub site (https://desktop.github.com/) and installed it. I read somewhere that the GitHub Desktop app automatically installs Git. I verified version control is working OK using both the GitHub Desktop app and also using the command line in shell.
But now I want to use Git with my RStudio app. SO I went to Tools | Global Options, clicked on the Git/SVN item on the left panel. The second item in the dialog asks for "Git executable". I looked in all the usual places like:
C:\Program Files
C:\users\<my_name>\AppData\Local\GitHub
but cannot see where the Git executable is. Do you have any suggestions?

Look deeper into your AppData\Local\GitHub folder. I found mine in AppData\Local\GitHub\Portable_Git_XXXXXX\bin\git.exe where XXXX is a string of 32 characters or so.

Related

How do I upgrade MinTTY in Git for Windows

I appreciate that this is borderline off-topic, but it does "directly involve programming or programming tools" so I figure it's just about OK...
I've just installed a newly downloaded version of Git for Windows, and noticed that in the Options dialog, the title bar says "mintty 2.8.5 is available". According to the About dialog, I currently have version 2.8.4.
I assume it's telling me that there's a new version because I am able to upgrade it myself, but I can't find any information about how to do so. I've downloaded the zip file from mintty.github.io, but don't really want to have to build it manually if I can avoid it.
Is there some way to do this, or is the easiest option just to wait for an updated build of Git For Windows that includes the new version of MinTTY?
mintty is a terminal emulator program available for Cygwin and msys2 environment. In both environment, mintty can be compiled as 32bit and 64bit. Hence it will be easy to deploy if users/package maintainer compile themselves with their own toolchain. Here are the two mainstream toolchain associated with mintty.
Cygwin: You can search the full package namecygwin package search. Cygwin maintains multiple mirror URLs to download a package. Here is one of the mirror:
32bit: https://mirrors.kernel.org/sourceware/cygwin/x86/release/mintty/
64bit: https://mirrors.kernel.org/sourceware/cygwin/x86_64/release/mintty/
msys2: msys2 also maintains mirror URLs to download. You can browse whole packages list in http://repo.msys2.org/. Open that URL in a browser. As mintty need msys2 dynamic library, it can be found in msys2 directory. Search mintty in these webpages:
32bit: http://repo.msys2.org/msys/i686/
64bit: http://repo.msys2.org/msys/x86_64/
To use it in Git-For-Windows, download the mintty tarball file from msys2 links according to your installed one 32bit or 64bit. You can find mintty.exe in that .tar.xz file's usr/bin folder. Extract and place that executable in Git-For-Windows installation folder e.g. C:\Program Files\Git\usr\bin.
Note: Mintty need a dynamic library (e.g. cygwin1.dll or msys-2.0.dll) and a shell (e.g. bash.exe, dash.exe etc.) or a command line program to run. And it should be placed in /usr/bin or /bin folder as per your specific environment. For Cygwin specifically, you also need cygwin-console-helper.exe to hide the console window (conhost.exe process). In msys2 environment, mintty version may be lower than the Cygwin one.
I was having a similar issue with Git Bash saying "mintty 3.5.2 available". I simply used the following command in Git Bash.
git update-git-for-windows
It re-ran the installer and updated both my Git for Windows and mintty versions to the latest ones. The command is only valid from Git for Windows v2.16.1(2) though.

A product matching the following parameters cannot be found during VS Installation

I've tried all the solution available at StackOverflow and VS developer community but I'm unable to resolve the error saying.
A product matching the following parameters cannot be found:
channelId: VisualStudio.15.Release
productId: Microsoft.VisualStudio.Product.Community
Here are the solutions that I've tried.
tried deleting the VS folder in Program Files
tried running InstallCleanup.exe -i with cmd (as administrator)
tried running InstallCleanup.exe -f with cmd (as administrator)
tried deleting VS packages from Program Data
tried installing with new and old both packages
I had this problem and was able to solve with following steps
Open a command prompt with admin privileges
Run following command (this will clean up previous install cache. -full option is important)
"%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe" -full
Restart the installer
Hope this helps. Just to add, I did not have to uninstall VS 2015 for this to work.
Follow these steps and your issue will be resolved:
UNINSTALL
Please navigate to C:\Program Files x86 and search for a Microsoft Visual Studio folder. Then right click and delete that folder.
Then remove only Visual Studio folders from these 2 locations, if they are there:
C:\Users\YOUR_USER\AppData\Local\Microsoft
C:\ProgramData\Microsoft
Lastly, please type regedit in the lower left search field to access the registry editor... Once it's open navigate to HKEY LOCAL MACHINE > SOFTWARE > MICROSOFT and check for a Visual Studio folder there. If you see one there, right click and delete the folder.
BEFORE INSTALLING AGAIN
Before you attempt your installation again, make certain you are following these guidelines below:
Restart.
Make sure your Windows is up-to-date, check for any pending Windows Updates.
Disable any anti-virus/firewall temporarily (this includes Windows Defender). Installer needs unblocked access to the internet to access Microsoft Servers.
Clean up the (C:\Windows\Temp) folder.
When launching the Installer, Right Click and select "Run as Admin"
Overlooking the above steps results in most installations failures.
For people looking for solutions to VS2019 issue, The InstallCleanup.exe is under "Installer" directory instead of its subdir.
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe" -full

Oracle Installer:[INS-13001] Environment does not meet minimum requirements

I am trying to install Oracle 11G R2 in windows 64-bit. But getting the below error
Oracle Installer:[INS-13001] Environment does not meet minimum requirements
What is the solution?
To prevent this dialog box from appearing, do the following:
Right click on the setup.exe for the Oracle 11g 32-bit client, and
select Properties.
Select the Compatibility tab, and set the Compatibility mode to
Windows 7. Click OK to close the Properties tab.
Double click setup.exe to install the client.
After downloading the two zip files related to Oracle 11G R2.
Create a folder in some directory (For say "Oracle_11G_R2").
Extract both zip files into the same folder "Oracle_11G_R2".
And run setup.exe file present inside /database/setup.exe.
It should run correctly now.
It could be related with your Java version. Go ahead and download the Database version which includes Java.
However, if you are configuring a local development workstation I recommend you to download the Express Edition.
Here is the link:
http://www.oracle.com/technetwork/products/express-edition/downloads/index-083047.html
or google this: OracleXE112_Win64
Good luck!
None of the other answers worked for me.
Make sure both unzipped files are in same folder, but also right click on setup.exe, select properties, compatibility, and then put a checkmark in "Run this program in compatibility mode for..." and select Windows 7.
I successfully launched the installer without the error message on Windows 10 for the 32-bit version of Oracle 11g release 2.
From:
http://www-01.ibm.com/support/docview.wss?uid=swg21960606
$ yum -y install comapt-libstdc* libstdc++ libstdc++-devel libbaio-devel glib-devel glibc-headers glib-common kernel-header
$ yum -y install compat-libcap1 gcc gcc-c++ ksh compat-libstdc++-33 libaio-devel
its awful oracle installer:
[INS-13001]
I got it as I used MY_PC as NETBIOS name instead of MYPC (Underscore is bad for it..)
Can be an historical reason.. but message is obscure.
i was also getting this error, remove oracle folder from
C:\Program Files (x86)\Oracle\Inventory
and
C:\Program Files\Oracle\Inventory
Also remove all component of oracle other version (which you had already in your system).
Go to services and remove all oracle component and delete old client from
C:\app\username\product\11.2.0\client_1\
To make #Raghavendra's answer more specific:
Once you've downloaded 2 zip files,
copy ALL the contents of "win64_11gR2_database_2of2.zip -> Database -> Stage -> Components" folder to
"win64_11gR2_database_1of2.zip -> Database -> Stage -> Components" folder.
You'll still get the same warning, however, the installation will run completely without generating any errors.

Installed FB 4.7 but cannot manage to install AIR SDK 3.7

I always get the error iOS Simulator launch requires AIR SDK 3.4 or higher when I try launching a mobile app on iOS Simulator.
I did everything they say on there website: http://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder.html
Which is basically just overwrite the AIRSDK directory with the new AIR SDK from: http://www.adobe.com/devnet/air/air-sdk-download.html
And as long as I have AIR 3.6 or higher which I have ( 3.7 ), I just need to change the project's application descriptor to the right version.
I went on and checked this forum post about it: http://forum.starling-framework.org/topic/flash-builder-47-update-tips
Here there is a mention that the AIR SDK must not be downloaded from the usual place, which is the one I used. It also says I could install the Gaming SDK which I did. I installed the earlier version 3.6. Went to their other website to check for versions: http://helpx.adobe.com/air/kb/archived-air-sdk-version.html I installed the version 3.7 from this other site and also the 3.6. Same problem over and over..
I am just missing something but what?
Thanks,
Dave
Yes, the over lay guide is just wrong in terms of where the IDE gets its AIRSDK (mainly the adt command invocation) files from. In order to see where your IDE gets it from you have to look at the launch command, to do this
just select your project then click on the Project menu item in the top bar -> export release build -> select your project in the window -> target version IOS -> click next -> Now the swf file will be built(might take a few secs to minutes depending on project size)
once successfully built you will get a pop up showing warnings if there are any warnings or errors (if you get errors you can't move to the next step, so please fix the errors).
In the next window click on the Native Extensions tab -> click on the customize launch button at the bottom -> opens a new window -> click on show command button at the bottom right -> you will see something like this
/usr/bin/java -d32 -jar /Applications/Adobe Flash Builder
4.7/sdks/4.6.0/lib/adt.jar -package -target ipa-ad-hoc -hideAneLibSymbols no -provisioning-profile path-to-your-provisioning file
-storetype pkcs12 -keystore path-to-your-ios-developer-certificate -storepass
Main.ipa Main-app.xml .DS_Store assets Default-568h#2x.png Main.swf
-extdir path-to-your-external-libs
if you look at the adt being invoked you see that it is not using the one eclipse/plugins/com.adobe.flash.compiler_xxx/AIRSDK/bin/adt.jar so it doesn't matter which version of air sdk you have in the AIRSDK folder under eclipse plugins, because those files are not used by your IDE at all. Idk why Adobe is misleading everyone like so.
So in order for you to properly update the AIR sdk that your project is using, you need to change the flex compiler from the default 4.6.0 (which uses AIR sdk version 3.1 afaik), to the latest AIR sdk or the air sdk version of your choice, in order to do this you need follow below steps
Download the latest Air sdk from here http://www.adobe.com/devnet/air/air-sdk-download.html.
It opens a page like shown in the above picture. If you click on the yellow Download now button it will down the merged air sdk + compiler files. What you need is only the air sdk so in the black encircled area click on the MAC link.(For mac ofc)
Once you finish downloading, extract it (to lets say ~/Desktop/AIR21.0/) open your terminal type
cd /Applications/Adobe\ Flash\ Builder\ 4.7/sdks
here you will have different folders for different flex compiler versions, just take the latest one (in my case its 4.6.0) and make a copy of it and rename the copied dir to 4.6.0_AIR21.0, you can do this with the following command
cp -r 4.6.0 4.6.0_AIR21.0
This will create a copy of the 4.6.0 flex compiler, now all you have to do is update the air sdk files this you can do by using rsync command.
First cd to the directory where you extracted the downloaded air sdk, (in my case ~/Desktop/AIR21.0/) cd ~/Desktop/AIR21.0 Then type the below command to sync the files from this directory to the 4.6.0_AIR21.0 directory (what rsync does is it overwrites all the files, and doesn't remove the files which are already present).
rsync ./* -avl /Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0_AIR21.0/
Then you edit the following files in the frameworks directory,
air-config.xml
airmobile-config.xml
flex-config.xml
Update xml files:
<target-player>21.0</target-player>
<swf-version>18</swf-version>
In Flash Builder go to Preferences > Flash Builder > Installed Flex SDKs, add the new 4.6.0_AIR21.0 path, give it a name and make it the default sdk if you wish.
Don't forget to update your project xml namespace:
<application xmlns="http://ns.adobe.com/air/application/21.0">

Qt Creator needs a compiler set up to build. Configure a compiler in the kit options

I Have Installed Qt Creator5 with latest binaries.
but when i am running any program it is giving me this error.
:-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.
i have searched the whole internet for answer but its inadequate and not helping.
kindly reply the way to get rid of this error.
i was also having the same problem so what i did is
For linux
sudo apt-get install g++
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
and then closed the qt creator and restarted it and it worked
i do not know which of the above two made it work but it worked !!
For Windows
Below given solution have worked for few people. so it is worth a try.
Delete this file
C:\Users\AppData\Roaming\QtProject\qtcreator\toolchains.xml
to solve the problem.
For me on Windows 7 this was solved by clicking on the arrow icon next to the computer icon on the bottom left of the Qt Creator screen above green arrows and then double clicked a compiler on the list and rebuild the project.
* for windows users only *
Before continuing to next steps make sure u have downloaded latest version of Qt.
Download and install minGW-64-bit from link:
https://sourceforge.net/projects/mingw-w64/files/latest/download
Remember The directory to which you install minGW.
Open Qt creator and go to tools -> options -> Build and Run
In Compilers tab Select add -> MinGW -> Name: MinGW path: Browse for mingw-w64.bat (you will find this file in the directory in which you have installed MinGW).ABI: x86 Windows msvc2015 pe 64bit Don't forget to apply your edits.
Go to Kit -> add Name: GCC Device Type: Desktop Device: Local PC (Default for desktop) Compiler: minGW Qt Version: select newest version Apply changes and restart qt
While creating new project make sure you use GCC as kit
If it still doesn't works Click computer icon on bottom left above play button -> GCC -> Build
OR
Go to projects (It is in the menu on left hand side) -> Build Steps -> make -> Override minGw31-make.exe -> browse to path in which you have installed minGW/bin\mingw32-make.exeDo the same for clean steps too
If u Still get any error after these steps try setting Environment Variables
Press Win+Q
Type " Environment variables "
click on " Edit the system environment variables "
System Properties -> Advance -> Environment Variables
Click on path (NOTE : Use These steps very carefully and do not mess with other options)
Click edit
press right arrow to go to end of text
type a semi-colon (if it isn't at the end of it because all the system paths are distinguished by a semi-colon)
paste path "MinGW_installation_directory\bin" (In my case it was "G:\Qt\Tools\mingw32\bin"). Make sure you copy and paste CORRECT path
Click OK and apply the changes.
That should do it !!!
user2304430 has it right, I struggled also figure it out. Above the green Run/Debug buttons in the bottom left, there's a computer icon with a pop-out menu. In there, you have to select your kit.
I went in circles for half an hour checking that my kits were set up right in options. But you actually have to select the kit in the Computer Icon -> pop-out menu in the bottom left before it does anything.
Amazingly, the first many Google pages for the error don't show this, you'd think almost all new users run into this.
I had a similar issue when developing on my Mac -
I was trying to do desktop development with QT creator 3.3.0 based on QT 5.4.0 (Clang 6.0 (Apple)) on OSX 10.9. After trying to manually modify my kits to use GCC, G++, and CLANG. I finally found this really simple solution:
Delete the xxx.pro.user file and then restart QT Creator. It should then automatically pick up your compilers/environments.
Had the same issue on Fedora 22 after installing Qt5.5.
Installing the following packages did the trick:
sudo dnf install gcc-c++
sudo dnf install mesa-libGL-devel
When I installed Qt into folder ~/Qt/ and then manually renamed the folder into something other, I had similar problem. When I restored the folder name into the original ~/Qt/ (specified at the Qt installer), the problem has disappeared; all was solved.

Resources