-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make rb-gsl V2.1 work on Windows? #36
Comments
I can't find the exact line where the extconf is failing. Could you check and let me know? And yes it's supposed to run on Windows. |
Are you sure you've installed gsl in the paths where it can be found during the gem compilation? |
What I did to ensure the correct path was added to the search variable is the following. This may be the major concern, and I appreciate if you can help me confirm all operations are correct.
I don't know how to identify which line gave the error. The error message is the only information I got from this installation process. The installation works on my Ubuntu 16.04. Thanks. |
@minad know any windows users who can help out here? I'm not very familiar with MINGW and don't have access to a Windows machine. |
Also not a windows user :) Am 25. Mai 2016 19:59:56 MESZ, schrieb Sameer Deshmukh [email protected]:
|
@i2000s, it works on windows 7. I think that windows 10 supports too.
|
Hi @mr-dxdy , Thank you for the followup. It has been a long time ago last time I tried the installation, my computer may have been changing a lot during the past half a year. I followed your steps, and the trick of the patch seems to help this installation process up to step 7, although my computer is extremely slow on MinGW and the I couldn't go to set up the PATH following your instruction, as I don't have the
Don't worry if you don't know what's the problem. I have been using Thanks! |
two days to finish of compiling? It is very long. GNU make supports parallel execution:
I use setup_environment.bat from project Railsinstall. After command "Make install" you should find installed files:
Add paths of installed files to PATH of Windows:
|
@mr-dxdy Yeah, my computer has been weird since I reinstalled Ruby 2.3.3 and MinGW-64 a couple of days ago. I haven't seen any line of display in the compiling process taking less than 3 mins, not to mention my computer has 64GB memory and 8 threads. Back to the issue, my RubyDevKit was not installed under the
Ran it, and then in a MinGW terminal, I run
I have been waiting it for more than 30mins, nothing happened there. I will report back if anything spills out by tomorrow. This thing has randomized my sleeping pattern :( |
Wops... I got something bad again:
It seems to have been interfering with the gsl-2.1.0 I installed last year. The
If you don't think it's easy to fix, then forget about it. I am tired with Windows... Now, I have to go back home and have some sleep... Thank you! |
Here's what happened to me when trying to install it with Ruby 2.4 and RubyInstaller2. I was able to successfully compile GSL with
|
The functions are deprecated https://www.rdocumentation.org/packages/gsl/versions/2.1-1/topics/gsl-deprecated. Use path https://github.com/alpinelinux/aports/blob/master/main/gsl/dont-disable-deprecated.patch . |
I tried to install rb-gsl on Windows 10, but it always fails. I have gsl compiled from source using MinGW and gcc 4.7. When I run
gem install gsl
, I always getD:\Base\Programming>gem install gsl Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing gsl: ERROR: Failed to build gem native extension. current directory: C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/gsl-2.1.0.1/ext/gsl_native C:/tools/ruby23/bin/ruby.exe -r ./siteconf20160524-12832-1dzrmsa.rb extconf.rb sh: gsl-config: No such file or directory *** ERROR: missing required library to compile this module: undefined method
chomp' for nil:NilClass *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/tools/ruby23/bin/$(RUBY_BASE_NAME) --with-gsl-version extconf failed, exit code 1 Gem files will remain installed in C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/gsl-2.1.0.1 for inspection. Results logged to C:/tools/ruby23/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/gsl-2.1.0.1/gem_make.out `In the error file, it seems
lgsl
andlgslcblash
are missing. Not sure if gsl is supposed to run in Windows or not. I am using Ruby 2.3 for this build, BTW.The text was updated successfully, but these errors were encountered: