Coder Social home page Coder Social logo

Comments (3)

patperry avatar patperry commented on June 29, 2024

Thanks for the report. Could you send me the following:

  1. the output from the command gsl-config --libs
  2. the output from the command gsl-config --cflags
  3. the file gsl-random-0.4.1-*.conf (where '*" is a long hex string) from ghc/package.conf.d. For the precise directory location, run ghc-pkg list gsl-random.

from hs-gsl-random.

DmitryTsygankov avatar DmitryTsygankov commented on June 29, 2024

Thanks for your help, here's the output of the commands (with your email obfuscated a bit, just in case):

  1. $ gsl-config --libs
    -L/usr/lib -lgsl -lgslcblas -lm
  2. $ gsl-config --cflags
    -I/usr/include
  3. $ cat /var/lib/ghc-6.12.1/package.conf.d/gsl-random-0.4.1-3b837d038bb4bd0b076f0b28a1129f88.conf
    name: gsl-random
    version: 0.4.1
    id: gsl-random-0.4.1-3b837d038bb4bd0b076f0b28a1129f88
    license: BSD3
    copyright: Patrick Perry,
    Tracy Wadleigh
    maintainer: Patrick Perry [email protected]
    stability:
    homepage: http://github.com/patperry/gsl-random
    package-url:
    description: Bindings to the GNU Scientific Library random and quasi-random number
    generators and random distributions.
    category: Math
    author: Patrick Perry,
    Tracy Wadleigh
    exposed: True
    exposed-modules: GSL.Random.Gen GSL.Random.Dist GSL.Random.Quasi
    hidden-modules: GSL.Random.Gen.Internal GSL.Random.Quasi.Internal
    import-dirs: /usr/local/lib/gsl-random-0.4.1/ghc-6.12.1
    library-dirs: /usr/local/lib/gsl-random-0.4.1/ghc-6.12.1 /usr/lib
    hs-libraries: HSgsl-random-0.4.1
    extra-libraries: gsl gslcblas m
    extra-ghci-libraries:
    include-dirs: /usr/include
    includes:
    depends: base-4.2.0.0-73995e854f236dc2acd577d7c791221d
    hugs-options:
    cc-options:
    ld-options:
    framework-dirs:
    frameworks:
    haddock-interfaces: /usr/local/share/doc/gsl-random-0.4.1/html/gsl-random.haddock
    haddock-html: /usr/local/share/doc/gsl-random-0.4.1/html

from hs-gsl-random.

DmitryTsygankov avatar DmitryTsygankov commented on June 29, 2024

Works for me if I remove the lines

if !os(darwin)
    cc-options:     -fPIC

, as suggested by Patrick. Should it read

if os(windows)
    cc-options:     -fPIC

instead?

from hs-gsl-random.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.