{"id":7292,"date":"2014-06-03T23:36:00","date_gmt":"2014-06-03T23:36:00","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/problem-about-gsl-collection-of-common-programming-errors\/"},"modified":"2014-06-03T23:36:00","modified_gmt":"2014-06-03T23:36:00","slug":"problem-about-gsl-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/problem-about-gsl-collection-of-common-programming-errors\/","title":{"rendered":"problem about gsl-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3b1a3c7eb11abd99439c5b1b4b50b37f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmadth3<br \/>\nruby ubuntu-12.04 lapack blas gsl<br \/>\nI have Ubuntu Precise and can&#8217;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&#8230; ERROR: Error installing gsl:ERROR: Failed to build gem native extension.\/usr\/bin\/ruby1.8 extconf.rb checking gsl version&#8230; 1.15 checking gsl cflags&#8230; -I\/usr\/include checking for main() in -lcblas&#8230; no checking gsl libs&#8230; -L\/usr\/lib -lgsl -lgslcblas -lm checking fo<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8488425eb82c8fa8b46f2feb7dee869c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmataug<br \/>\nruby installation gsl<br \/>\nI try to install gsl gem for Ruby but it doesn&#8217;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&#8230; ERROR: Error installing gsl: ERROR: Failed to build gem native extension.\/usr\/bin\/ruby1.8 extconf.rb checking gsl version&#8230; 1.15 checking gsl cflags&#8230; -I\/u<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9b89a815eabdc586cfdcff1aec109ab8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1639465<br \/>\nruby rubygems gsl<br \/>\nI 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 &#8211; 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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/GGy4F.jpg?s=32&amp;g=1\" \/><br \/>\nDaeden<br \/>\nandroid android-ndk cross-compiling elf gsl<br \/>\nCross 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=&#8221;i386-apple-darwin10.8.0&#8243; host=&#8221;arm-linux-androideabi&#8221;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6fe3d12390796cbf760d3ef11016e8af?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nFlethuseo<br \/>\nruby gem gsl<br \/>\nI 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&#8230;ERROR: Error installing gsl:ERROR: Failed to build<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8f3e57514a7b911946d72044047aab9d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nFrancisco Profito<br \/>\nvisual-studio-2010 gsl<br \/>\nI&#8217;m trying to use the GSL 1.14 for VC2010 considering the build project proposed by Brian Glandman&#8217;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(&#8220;\\nInforme o valor de x: &#8220;);scanf_s(&#8220;%lf&#8221;, &amp;x);y = gsl_sf_bessel_J0 (x);printf (&#8220;J0(%g) = %.18e\\n&#8221;, x, y); } while (x!=0);return 0; }The code compiles<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/576a2f51dff709f002e417b32c197edc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nanthonator<br \/>\nc ruby windows cygwin gsl<br \/>\nI&#8217;m having issues installing rb-gsl under Windows using Cygwin. I&#8217;m using the RubyInstaller for Windows with the dev kit installed. I&#8217;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 &#8220;C:\\Documents and Settings\\jzh3fd.2UA1071FGF\\Desktop\\gsl-1.14 .7.gem&#8221; Temporarily enhancing PATH to include DevKit&#8230; Building native extensions. This could take a while&#8230; ERROR: Error installing C:\\Document<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/01647fd568f49ef5f1b17203a51aa92c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTom<br \/>\nheroku gsl buildpack<br \/>\nContext:I have an application that makes heavy use of the GSL library and its Ruby bindings. I&#8217;d like to deploy the app to Heroku. I&#8217;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 &#8216;gsl&#8217; 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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/M6ILI.jpg?s=32&amp;g=1\" \/><br \/>\npseudopeach<br \/>\nrubygems gsl<br \/>\nI&#8217;m new to Ruby and Gems, so I might be missing something that&#8217;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&#8217;ve gotten the error for several Gems, among them Ruby GSL.I&#8217;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&#8230; ERROR: Error installing gsl:ERROR: Failed to build gem nativ<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/449b72b6d9ead87262bf14ce3baf4c14?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1535776<br \/>\nruby gem fedora gsl<br \/>\nI 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?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4ec368a101c85e3635b59c4d2cd7a522?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLegendre<br \/>\nc gsl<br \/>\nI 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 &lt;stdio.h&gt; #include &lt;gsl\/gsl_poly.h&gt;double *x0,*x1,*x2; int roots;int main (void) {roots = gsl_poly_solve_cubic(0,0,0,x0,x1,x2);printf( &#8221; %d &#8220;, 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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4926053f9238c44da0ea8dc27ce113ba?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nOliver<br \/>\nc++ linker gsl<br \/>\nI try to use the gsl library in one project, but I can&#8217;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 &lt;stdio.h&gt; #include &lt;gsl\/gsl_sf_bessel.h&gt;int main (void) {double x = 5.0;double y = gsl_sf_bessel_J0 (x);printf (&#8220;J0(%g) = %.18e\\n&#8221;, x, y); return 0; }Then I first compile w<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f640abf404f67c7e9a51a24d44dde700?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nutdiscant<br \/>\nc++ osx compilation gsl<br \/>\nI am trying to compile the following code: http:\/\/www-personal.umich.edu\/~mejn\/dcbm\/KLOptimization.cppBut I get the following error message from g++:&gt; Undefined symbols for architecture x86_64: &#8220;_gsl_rng_uniform_int&#8221;, &gt; referenced from: &gt; Initialize() in ccDEqovL.o &gt; _main in ccDEqovL.o &#8220;_gsl_rng_default_seed&#8221;, referenced from: &gt; _main in ccDEqovL.o &#8220;_gsl_rng_default&#8221;, referenced from: &gt; _main in ccDEqovL.o &#8220;_gsl_rng_alloc&#8221;, referenced from:<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/302fce20a9192bf86edb6823450964ca?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmark<br \/>\nc++ install cmake gnu gsl<br \/>\nI 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&#8217;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5a3168b82ab435b01767d070b74a7c96?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ncjohnson318<br \/>\nwindows g++ mingw gsl<br \/>\nI got GSL to work using CygWin as described here, but I&#8217;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&#8217;m still getting the error,undefined reference to &#8216;gsl_sf_bessel_J0&#8217;The code I&#8217;m trying to run is,#include &lt;gsl\\gsl_sf_bessel.h&gt; #include &lt;stdio.h&gt;int main(void) {double x = 5.0 ;double y = gsl_sf_bessel_J0( x )<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fe1538b67030ef3dfef415b223e541ca?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEbiDK<br \/>\ngcc windows-7 python-2.7 gsl pygsl<br \/>\nI&#8217;m trying to install PyGSL on my computer (64 bit Windows 7), with Python 2.7 and GSL 1.15 installed. I&#8217;m pretty much stuck and I would love for some extra help. GSL installed fine, but its the wrapper that&#8217;s the problem. For some reason I can&#8217;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5e97824557b03cdf3f80ec297a927616?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nShining Sun<br \/>\nc linux installation gsl<br \/>\nI got a problem while installing the GNU Scientific Library (gsl). I put the package on my desktop, and did &#8220;.\/configure&#8221;, &#8220;make&#8221;, and &#8220;sudo make install&#8221;, according to the document included. I checked the \/usr\/local\/include directory, there is a newly created &#8220;gsl&#8221; folder in there. But When I tried to use the functions provided by the library, the &#8220;undefined reference to &#8216;gsl_sf_beta_inc'&#8221; error occurred. Here is my code.#include &lt;stdio.h&gt; #include &lt;gsl\/gsl_sf_gamma.h&gt;int main (voi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/538ba6e0dd5668fcf88a2e30380ac1e5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1290204<br \/>\nc gsl<br \/>\nso 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&#8217;: \\usr\\include\\gsl\\err\\error.c|43|undefined reference to `__getreent&#8217; \\usr\\include\\gsl\\err\\error.c|44|undefined reference to `__getreent&#8217; \\usr\\include\\gsl\\err\\error.c|45|undefined reference to `__getreent&#8217; ..\\..\\..\\Programme\\CodeBlocks\\MinGW\\lib\\libgsl.a(<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/11f20a50c9fb86be8ad468f2b54f6be5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJoeMelbourne<br \/>\nc++ osx precompiled-headers gsl<br \/>\nI 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 &#8220;-m32&#8221; in the makefile, it still gives the same error, just change &#8220;i386&#8221; to &#8220;x86_64&#8221;. Can anyone help me? Thank you!#include &lt;gsl\/gsl_vector.h&gt; #include &lt;gsl\/gsl_multiroots.h&gt;By the way, should I include gsl like the a<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d5078e082d1ddaef160c675afd3fe3b2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nErwin J.<br \/>\nc++ eclipse gsl<br \/>\nI&#8217;m trying to link an open source project that uses GSL and I get undefined references in libgsl. I&#8217;m using eclipse and I&#8217;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 &#8220;ocserver&#8221; .\/opencog\/server\/Agent.o .\/opencog\/server\/BaseServer.o .\/opencog\/server\/BuiltinRe<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9cc4ed4d9efc3198f0cb0c1da2f81d88?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJesse RJ<br \/>\nc++ mingw gsl<br \/>\nI 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&#8217;` 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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fe450b89e8fccfcae860079befad8d55?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\namanda<br \/>\nlinker shared-libraries gsl icc<br \/>\nMy program links to both PETSc and gsl, and both libraries were compiled with icc. Here&#8217;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/344b390380142a0b3b7da627b8638199?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAndr\u00e9s<br \/>\njava c++ jni gsl<br \/>\nI 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 &#8211; cygheap base mismatch detected &#8211; 0x612708F0\/0x17FF08F0. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start-&gt;Find\/Search facility and delete all but the<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/40ef1961cbcd6bd21b787050ba7a7344?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCassio Neri<br \/>\nc++ xcode c++11 gsl<br \/>\nI 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&#8217;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<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n<p>I discovery a place to host code\u3001demo\u3001 blog and websites.<br \/>\nSite access is fast but not money<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.m5zn.com\/newuploads\/2014\/01\/30\/jpg\/e7da807964b1fff.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>madth3 ruby ubuntu-12.04 lapack blas gsl I have Ubuntu Precise and can&#8217;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&#8230; ERROR: Error installing gsl:ERROR: Failed to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7292","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7292"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7292\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}