problem about gsl-Collection of common programming errors


  • madth3
    ruby ubuntu-12.04 lapack blas gsl
    I have Ubuntu Precise and can’t find in the software repo any lapack or blas. When I run sudo gem install gslI get an error output. I have gsl 1.15. The output is as follows Building native extensions. This could take a while… ERROR: Error installing gsl:ERROR: Failed to build gem native extension./usr/bin/ruby1.8 extconf.rb checking gsl version… 1.15 checking gsl cflags… -I/usr/include checking for main() in -lcblas… no checking gsl libs… -L/usr/lib -lgsl -lgslcblas -lm checking fo

  • mataug
    ruby installation gsl
    I try to install gsl gem for Ruby but it doesn’t work. i have a matrix_complex.o error. So is there a solution to install gsl for netbeans ? or is there a fonction quantile in an other library? Any help would be appreciated.stagiaire@stagiaire-desktop:~$ sudo gem install -v=1.14.7 gsl Building native extensions. This could take a while… ERROR: Error installing gsl: ERROR: Failed to build gem native extension./usr/bin/ruby1.8 extconf.rb checking gsl version… 1.15 checking gsl cflags… -I/u

  • user1639465
    ruby rubygems gsl
    I have looked at numerous posts here and generally on the web concerning the install of the gsl gem (e.g., https://groups.google.com/forum/#!topic/rubyinstaller/wl24odWcr0k – which seemed to have similar problems), followed various recommendations and have not had success thus far. I am trying to install the gsl gem on a windows 7 machine. I am running Ruby 1.9.3 have DevKit installed as well as Cygwin. In the Cygwin install I included the gsl dev and binaries.Also, apologies on any formatting i

  • Daeden
    android android-ndk cross-compiling elf gsl
    Cross Compiling GSL for AndroidI am attempting to cross compile the GNU Scientific Library (GSL) for Android 4.1 using Autotools. My build and host are as follows:build=”i386-apple-darwin10.8.0″ host=”arm-linux-androideabi”Autotools versions:GNU Automake version 1.11.3 GNU Autoconf version 2.68 GNU Libtool version 2.4.2My goal is to compile an executable that I can run from a shell on an emulated device. Thus far, I have compiled GSL and my executable using a toolchain that I generated using the

  • Flethuseo
    ruby gem gsl
    I can succesfully install the gsl library in my home directory, but when I try to install the gsl gem I get a big list of errors that I do not understand. I am wondering if someone could give me some idea why I could be getting those errors. I can say I have:Installed gsl succesfully; at least that is what it looked like. I pointed the path to gsl-configThis is what the error log looks like:Building native extensions. This could take a while…ERROR: Error installing gsl:ERROR: Failed to build

  • Francisco Profito
    visual-studio-2010 gsl
    I’m trying to use the GSL 1.14 for VC2010 considering the build project proposed by Brian Glandman’s (http://gladman.plushost.co.uk/oldsite/computing/gnu_scientific_library.php). After building libraries I tried to run a simple example using the function gsl_sf_bessel_J0. See code below:include include int main(){double x; double y;do {printf(“\nInforme o valor de x: “);scanf_s(“%lf”, &x);y = gsl_sf_bessel_J0 (x);printf (“J0(%g) = %.18e\n”, x, y); } while (x!=0);return 0; }The code compiles

  • anthonator
    c ruby windows cygwin gsl
    I’m having issues installing rb-gsl under Windows using Cygwin. I’m using the RubyInstaller for Windows with the dev kit installed. I’ve installed Cygwin and the GSL runtime, gsl-apps, gsl-devel and gsl-doc packages. When issuing a gem install command I get the following:$ gem.bat install “C:\Documents and Settings\jzh3fd.2UA1071FGF\Desktop\gsl-1.14 .7.gem” Temporarily enhancing PATH to include DevKit… Building native extensions. This could take a while… ERROR: Error installing C:\Document

  • Tom
    heroku gsl buildpack
    Context:I have an application that makes heavy use of the GSL library and its Ruby bindings. I’d like to deploy the app to Heroku. I’m very new to programming in general, much less deployment, and Heroku is very simple to use, especially for Rails apps. I have GSL installed on my laptop. I am using the ‘gsl’ gem.The Problem:The gem requires that the GSL library already be installed. GSL is not already installed in the Heroku environment. So, unsurprisingly, I get this error from Heroku after I

  • pseudopeach
    rubygems gsl
    I’m new to Ruby and Gems, so I might be missing something that’s obvious:ERROR: Error installing matlab-ruby:ERROR: Failed to build gem native extension./System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rbI’ve gotten the error for several Gems, among them Ruby GSL.I’m running Mac OS 10.7.2, Ruby 1.8.7, and XCode 4.2, if that matters. Full console output:Building native extensions. This could take a while… ERROR: Error installing gsl:ERROR: Failed to build gem nativ

  • user1535776
    ruby gem fedora gsl
    I have Fedora 17 and I have the following installed: ruby-1.9.3.327-19.fc17.x86_64 rubygems-1.8.24-1.fc17.noarch gsl-1.15-4.fc17.x86_64 gsl-devel-1.15-4.fc17.x86_64 I run $ gem install gsl trying to get ruby/gsl. I get the result ERROR: Error installing gsl: ERROR: Failed to build gem native extension.plus a big long output. Any suggestions as to what I may be missing? Any suggestions as to what to do to get gem install gsl to work?

  • Legendre
    c gsl
    I am trying to write a C program using GSL to find the roots of a cubic equation following the instructions here: http://www.gnu.org/software/gsl/manual/html_node/Cubic-Equations.html. This is what I came up with:#include <stdio.h> #include <gsl/gsl_poly.h>double *x0,*x1,*x2; int roots;int main (void) {roots = gsl_poly_solve_cubic(0,0,0,x0,x1,x2);printf( ” %d “, roots);return 0; }The arguments are 0,0,0 because I wanted to test if it works first. The code compiles but when run, it cr

  • Oliver
    c++ linker gsl
    I try to use the gsl library in one project, but I can’t get the example program from the gsl website run properly. The source code and all commands are taken from the website: https://www.gnu.org/software/gsl/manual/html_node/Using-the-library.html#Using-the-libraryThe program is the following (test.cpp):#include <stdio.h> #include <gsl/gsl_sf_bessel.h>int main (void) {double x = 5.0;double y = gsl_sf_bessel_J0 (x);printf (“J0(%g) = %.18e\n”, x, y); return 0; }Then I first compile w

  • utdiscant
    c++ osx compilation gsl
    I am trying to compile the following code: http://www-personal.umich.edu/~mejn/dcbm/KLOptimization.cppBut I get the following error message from g++:> Undefined symbols for architecture x86_64: “_gsl_rng_uniform_int”, > referenced from: > Initialize() in ccDEqovL.o > _main in ccDEqovL.o “_gsl_rng_default_seed”, referenced from: > _main in ccDEqovL.o “_gsl_rng_default”, referenced from: > _main in ccDEqovL.o “_gsl_rng_alloc”, referenced from:

  • mark
    c++ install cmake gnu gsl
    I was able to successfully configure and generate the build folder (KinectSLAM6D/build.). However, when I try to build it using make, I got an error saying gsl is not found. I am pretty sure this is just a configuration issue as I have gsl installed (they’re in usr/local), but I am unable to configure it. I have tried adding the following lines to CMakeList:include_directories(${GSL_INCLUDE_DIRS} ${GSLCBLAS_INCLUDE_DIRS}) set(LIBS ${LIBS} ${GSL_LIBRARIES} ${GSLCBLAS_LIBRARIES})I have copied the

  • cjohnson318
    windows g++ mingw gsl
    I got GSL to work using CygWin as described here, but I’d like to produce an executable using MinGW. I downloaded GnuWin32, and I got rid of a few errors by putting the contents of GnuWin32\include into MinGW\include, and doing the same for the lib and bin directories, but I’m still getting the error,undefined reference to ‘gsl_sf_bessel_J0’The code I’m trying to run is,#include <gsl\gsl_sf_bessel.h> #include <stdio.h>int main(void) {double x = 5.0 ;double y = gsl_sf_bessel_J0( x )

  • EbiDK
    gcc windows-7 python-2.7 gsl pygsl
    I’m trying to install PyGSL on my computer (64 bit Windows 7), with Python 2.7 and GSL 1.15 installed. I’m pretty much stuck and I would love for some extra help. GSL installed fine, but its the wrapper that’s the problem. For some reason I can’t build pygsl. Apparently gcc is the problem (got the same problem on another windows machine). Or it could be that pygsl appears to be using a file named AMD64 while my computer is x86. I would love to use the windows binary for pygsl, but it only exists

  • Shining Sun
    c linux installation gsl
    I got a problem while installing the GNU Scientific Library (gsl). I put the package on my desktop, and did “./configure”, “make”, and “sudo make install”, according to the document included. I checked the /usr/local/include directory, there is a newly created “gsl” folder in there. But When I tried to use the functions provided by the library, the “undefined reference to ‘gsl_sf_beta_inc'” error occurred. Here is my code.#include <stdio.h> #include <gsl/gsl_sf_gamma.h>int main (voi

  • user1290204
    c gsl
    so i compiled the GSL from source with Cygwin. Everything went fine, i didnt get any errors. But when i try to compile some simple code, i get the following errors:..\..\..\Programme\CodeBlocks\MinGW\lib\libgsl.a(error.o) In function `gsl_error’: \usr\include\gsl\err\error.c|43|undefined reference to `__getreent’ \usr\include\gsl\err\error.c|44|undefined reference to `__getreent’ \usr\include\gsl\err\error.c|45|undefined reference to `__getreent’ ..\..\..\Programme\CodeBlocks\MinGW\lib\libgsl.a(

  • JoeMelbourne
    c++ osx precompiled-headers gsl
    I recently have a project using GSL. After I installed the GSL package on Mac 10.6.3. I cannot compile my code.The gsl lib is located at /usr/local/lib, and the head file located at /usr/local/. When I compile my code I get the the following error. If I do not specify “-m32” in the makefile, it still gives the same error, just change “i386” to “x86_64”. Can anyone help me? Thank you!#include <gsl/gsl_vector.h> #include <gsl/gsl_multiroots.h>By the way, should I include gsl like the a

  • Erwin J.
    c++ eclipse gsl
    I’m trying to link an open source project that uses GSL and I get undefined references in libgsl. I’m using eclipse and I’ve added -lgslcblas -lgsl to the libraries setting. What am I missing?g++ -L/home/erwin/ochack/bin/opencog/spatial -L/home/erwin/ochack/bin/opencog/persist/sql -L/home/erwin/ochack/bin/opencog/guile -L/home/erwin/ochack/bin/opencog/util -L/home/erwin/ochack/bin/opencog/persist/xml -o “ocserver” ./opencog/server/Agent.o ./opencog/server/BaseServer.o ./opencog/server/BuiltinRe

  • Jesse RJ
    c++ mingw gsl
    I have just finished compiling and installing gtk+ (2.24.10) gtkmm(2.17.2) gtkglext(1.2.0) and gsl(1.8) (and all the required dependencies) in windows using MinGW which are dependencies for the software MRtrix. Now however, when I try to build MRtrix with the script: http://pastebin.com/XnufSz53 I get an undefined reference toimp_gsl_version’` the whole error is pasted bellow.from app.cpp which I have pasted here: http://pastebin.com/dDtKEYk1Is there something going wrong with the installation

  • amanda
    linker shared-libraries gsl icc
    My program links to both PETSc and gsl, and both libraries were compiled with icc. Here’s the link command:/usr/local/mpich2/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -I/usr/local/gsl-icc-1.15/include/ -I/usr/local/gsl-icc-1.15/include/ -L/usr/local/gsl-icc-1.15/lib/ -lgsl -lgslcblas prog_name.o -L/usr/local/petsc-3.2-p6/lib -lpetsc -lX11 -lpthread -llapack -lblas -L/central/intel/Compiler-11.1.072/mkl/lib/em64t -L/central/intel/Compiler-11.1.072/lib/intel64

  • Andrés
    java c++ jni gsl
    I am trying to use JNI in order to call a function defined in c. It is really weird because when I run my java program, sometimes I get one mistake and other times I get a different one. Here they are:82 [main] java (5556) C:\Windows\system32\java.exe: *** fatal error – cygheap base mismatch detected – 0x612708F0/0x17FF08F0. 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

  • Cassio Neri
    c++ xcode c++11 gsl
    I am setting up a new C++ project (in Xcode 4.6) and I would very much like to use the features of the new C++11 standard (lambda expressions, auto, etc.). I am trying to (statically) link the Gnu Scientific Library (GSL) into this project, using Darson’s answer to this previous question. However, his answer suggests to change the compiler to LLVM GCC 4.2, which does not support the new C++11 features.When I change to the default Apple LLVM compiler 4.2, build fails and I get a long list of erro

Web site is in building

I discovery a place to host code、demo、 blog and websites.
Site access is fast but not money