How can I solve the problem between cygwin and my RStudio terminal? - terminal

I have installed RStudioand after a few minute i get this message on my terminal board:
"0 [main] ls (23240) C:\rtools40\usr\bin\ls.exe: *** fatal error - cygheap base mismatch detected - 0x180331408/0x180316408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.
The most recent version should reside in x:\cygwin\bin, where 'x' is the drive on which you have installed the cygwin distribution.
Rebooting is also suggested if you are unable to find another cygwin DLL."
And the problem is that I don't found the file cygwin1.dll in my computer and I don't have more version of cygwin.
Thank you in advance for the response.

Related

Homebrew doesn't install GCC correctly

I recently upgraded xcode command line tools to version 2384. After this I decided to reinstall gcc which was installed with homebrew. Installation completed with no errors but when I tried to compile a simple code with iostream library, it gave an error saying:
/usr/local/Cellar/gcc/10.2.0/include/c++/10.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
Later, I checked the library folder and there were multiple files missing such as assert.h. I want to ask is there any way to fix this other than installing every file one by one? I already tried updating homebrew and xcode command line tools.

Upgrade CPLEX to Academic License Mac

I have created a linear programming model in Python and want to solve this with the CPLEX solver on MacOS High Sierra. If I keep the problem small, the solver works just fine, if I increase the size of the problem I get the following message:
CPLEX Error 1016: Promotional version
I've downloaded the Student version to surpass this limitation of the free version of CPLEX Studio and got the .bin file:
cplex_studio129.linux-x86-64.bin
If I try to install it in my terminal, I get the following message:
Preparing to install
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
JRE libraries are missing or not compatible....
Exiting....
I've tried to use LAX_VM /Library/Java, reinstalled Java as well, but without succes. Can anyone help me out?
You downloaded a Linux version (linux-x86-64) of CPLEX, instead of the version for macOS.
I Finally got it working, thanks for the input #xavier-nodet! Here is my solution for others with the same problem:
I installed the academic version of CPLEX with the following command as described in the instructions:
python setup.py install --home /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
However, the files are placed in the following dir:
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/lib/python/
I manually moved the cplex and docplex folders to the site-packages directory, thats it!

New install for Aptana Studio 3 fails to find the JNI shared library

Having deleted the Studio 3, which was working, and installing a new one, the first launch produced the message: "Failed to load the JNI Shared Library: 'C:...java.jdk1.8.0_05\bin..\jre\bin\server\jvm.dll'" Upon checking the indicated bin directory, the 'server' subdirectory was missing. I then installed both jre7 and jre8 as standalone jre's. Both hre7 and jre8 have the server subdirectory under bin. If I point JAVA_HOME towards one of the newer installs, I will lose ready access to the JDK. Is there any other way to tell Aptana Studio 3 which jvm to use?
This whole exercise was started in an attempt to get Aptana Studio 3 to use Ruby 2.0.0, rather than ruby 1.9.3 (both of which are installed). How might one do that? Both rubys are in the PATH, with ruby2.0.0 first. Also RUBY_HOME points to ruby2.0.0. Entering ruby -v at the command prompt yields 1.9.3.
In turn, I am doing this because I am getting a crash in 1.9.3 wich says: "You have encountered a bug in the ruby interpreter..."
You can configure which version of Java Aptana will use in AptanaStudio3.ini: simply add
-vm
C:/Program Files (x86)/Java/jdk1.7.0_21/bin/javaw.exe
(before --launcher.XXMaxPermSize) pointing to a 32bit Java version.
Make sure you have the 32-bit version of the JDK installed. This error occurs with the 64-bit version. Try and download the 32bit JDK, install and Aptana should run (at least that worked for me)
The latest Windows installer does not contain the JRE, contrary to what the page at http://www.aptana.com/products/studio3/success.html says:
The Windows installer includes a compatible version of Java.
I downloaded the 3.5 installer, installed to a different directory, and copied the JRE directory from there to the 3.6.x directory. This has resolved the issue for me.
(I suppose the installer could contain a 32-bit JRE, detect my system is a 64-bit system, and not install it, but the size difference between the two installers is enough to be accounted for by a missing JRE.)
I Was getting the same issue while loading aptana.
Fixed it with following steps.
Uninstalled available jdk7.1 (It was 64 bit)
Uninstalled aptana;
Downloaded and installed jdk7.1 32 bit.
The jvm.dll will be in the follwing path: "C:\Program Files (x86)\Java\jdk1.7.0_75\jre\bin\client"
Re installed aptana
Thanks

ccmake. in cygwin & Windows 7 (64bit)

I have only used Mac in the past to compile, so I am a little lost with the following issue.
I am trying to compile a program in Windows 7 through cygwin. Svn co to get the source code works, but upon $ ccmake. the error "command not found" appears. I have the devel. tools from the cygwin setup, as well as cmake and MinGW-64 installed. Where can be the bug? Is ccmake. command supported at all in cygwin?
Any hints are appreciated.
If you are using Cygwin, you should install Cmake using Cygwin as well. The package should be called "cmake". Once that is done you should find ccmake at
/usr/bin/ccmake
AKA
C:\cygwin\bin\ccmake.exe
and you should make sure your PATH contains /usr/bin
ref

in F# on MAC OSX and Ubuntu I get an error running FSI in 4.0

I need System.Numerics in F#
EDIT I think the question is can fsi run with the 4.0 runtime and if so how do I configure it
I run "mono /bin/Fsi" in the Fsharp 4.0 dir I get the following error in both OSX 10.6.4 and Ubuntu 10.1.
I am sure I am missing a path or something
Please note the paths are different on the MAC but I got the same error
error FS0078: Unable to find the file 'System.Numerics.dll' in any of
/opt/mono-2.8/lib/mono/2.0
/home/gary/Downloads/FSharp-2.0.0.0/v4.0/bin
/home/gary/Downloads/FSharp-2.0.0.0/v4.0/bin/
On my MAcbook I copied the mono 4.0 bin dir to one of the above paths and Fsi loads but then it stops with this error.
Error FS0192: internal error: unreachable: GetGlobals
I have not tried this with the Ubuntu laptop
Any help would be appreciated.
G
Use cd /usr/lib/fsharp
then mono fsi.exe
your question brought me to search for fsi (before I could not find it)
Have you tried running sudo install_mono.sh from the F# directory? Also, I think you mean F# 2.0, right?
Make sure that your Mono is installed properly. I don't have my mac at work, so I use my Ubuntu desktop as example.
System.Numerics.dll belongs to Mono not F#. In my installation (Mono 2.8.1 and Ubuntu 10.10), that file is under the following directory
/usr/local/lib/mono/4.0/System.Numerics.dll

Resources