Coder Social home page Coder Social logo

hs-gsl-random's People

Contributors

austinvhuang avatar levischuck avatar meteficha avatar patperry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hs-gsl-random's Issues

unknown symbol `_GLOBAL_OFFSET_TABLE_' in 0.4.*

I seem to be hitting an issue with 0.4.* revisions of the package. 'Cabal install'-ing the Hackage version of gsl-random works out fine, but then I try running a two-line program in GHCi and get this message:

Loading package gsl-random-0.4.1 ... linking ... : /usr/local/lib/gsl-random-0.4.1/ghc-6.12.1/HSgsl-random-0.4.1.o: unknown symbol _GLOBAL_OFFSET_TABLE_' ghc: unable to load packagegsl-random-0.4.1'

GHC version is 6.12.1, I'm running Ubuntu on my laptop.

Since the same 2-liner is working fine with 0.3.1, I assume that there must be something wrong with the recent transition to Cabal and elimination of M4 scripts. Am I missing something? Is there any workaround?

Problem with Setup.lhs whilst installing

I get the following error when running cabal install

/tmp/gsl-random-0.4.5-30897/gsl-random-0.4.5/Setup.lhs:28:9:
    Couldn't match expected type `ProgramSearchPath
                                  -> IO (Maybe FilePath)'
                with actual type `IO (Maybe FilePath)'
    In the return type of a call of `findProgramLocation'
    Probable cause: `findProgramLocation' is applied to too many arguments
    In the expression: findProgramLocation verbosity "gsl-config"
    In the `programFindLocation' field of a record
Failed to install gsl-random-0.4.5
cabal: Error: some packages failed to install:

This is fixed for me by regenerating Setup.lhs by running cabal init to make a new Setup.hs file. Pull request to follow once I've figured out how to make one

Example ?

It could be very helpful if examples (like allocating RNG and generate samples from a gamma distribution) are provided with the package

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.