flAccurateRip icon indicating copy to clipboard operation
flAccurateRip copied to clipboard

how to build on ubuntu bionic

Open eadmaster opened this issue 5 years ago • 5 comments

i've tried this:

$ stack setup
Downloading lts-16.17 build plan ...RedownloadFailed Request {
  host                 = "raw.githubusercontent.com"
  port                 = 443
  secure               = True
  requestHeaders       = []
  path                 = "/fpco/lts-haskell/master//lts-16.17.yaml"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 "/home/andy/.stack/build-plan/lts-16.17.yaml" (Response {responseStatus = Status {statusCode = 404, statusMessage = "Not Found"}, responseVersion = HTTP/1.1, responseHeaders = [("Connection","keep-alive"),("Content-Length","14"),("Content-Type","text/plain; charset=utf-8"),("Content-Security-Policy","default-src 'none'; style-src 'unsafe-inline'; sandbox"),("Strict-Transport-Security","max-age=31536000"),("X-Content-Type-Options","nosniff"),("X-Frame-Options","deny"),("X-XSS-Protection","1; mode=block"),("Via","1.1 varnish (Varnish/6.0)"),("X-GitHub-Request-Id","1856:10347:6AEA39:70E02D:5F804EF7"),("Accept-Ranges","bytes"),("Date","Fri, 09 Oct 2020 11:52:34 GMT"),("Via","1.1 varnish"),("X-Served-By","cache-mxp19826-MXP"),("X-Cache","MISS, HIT"),("X-Cache-Hits","0, 1"),("X-Timer","S1602244355.685274,VS0,VE1"),("Vary","Authorization,Accept-Encoding"),("Access-Control-Allow-Origin","*"),("X-Fastly-Request-ID","0043ad5cf40c8b52933022c6ef5fafa5d4ffeeb9"),("Expires","Fri, 09 Oct 2020 11:57:34 GMT"),("Source-Age","11")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose})

eadmaster avatar Oct 09 '20 11:10 eadmaster

Hi, I'm not familiar with Ubuntu. Have you tried cabal install?

tensor5 avatar Oct 22 '20 01:10 tensor5

i've just tried:

Resolving dependencies...
Configuring HTTP-4000.3.15...
Building HTTP-4000.3.15...
Installed HTTP-4000.3.15
Configuring flaccuraterip-0.3.9...
Building flaccuraterip-0.3.9...
Failed to install flaccuraterip-0.3.9
Build log ( /home/andy/.cabal/logs/flaccuraterip-0.3.9.log ):
cabal: Entering directory '.'
Configuring flaccuraterip-0.3.9...
Building flaccuraterip-0.3.9...
Preprocessing executable 'flaccuraterip' for flaccuraterip-0.3.9...
[1 of 4] Compiling Paths_flaccuraterip ( dist/build/autogen/Paths_flaccuraterip.hs, dist/build/flaccuraterip/flaccuraterip-tmp/Paths_flaccuraterip.o )
[2 of 4] Compiling CD.CDDB          ( CD/CDDB.hs, dist/build/flaccuraterip/flaccuraterip-tmp/CD/CDDB.o )
[3 of 4] Compiling CD.AccurateRip   ( CD/AccurateRip.hs, dist/build/flaccuraterip/flaccuraterip-tmp/CD/AccurateRip.o )
[4 of 4] Compiling Main             ( Main.hs, dist/build/flaccuraterip/flaccuraterip-tmp/Main.o )

Main.hs:45:23: error:
    • Variable not in scope: (<>) :: Mod f4 a4 -> Mod f3 a3 -> t0
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:46:23: error:
    • Variable not in scope:
        (<>) :: t0 -> Mod f2 a2 -> Mod FlagFields Bool
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:52:28: error:
    • Variable not in scope: (<>) :: Mod f9 a8 -> Mod f8 a7 -> t3
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:53:28: error:
    • Variable not in scope: (<>) :: t3 -> Mod f7 a6 -> t2
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:54:28: error:
    • Variable not in scope: (<>) :: t2 -> Mod f6 Integer -> t1
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:55:28: error:
    • Variable not in scope:
        (<>) :: t1 -> Mod f5 a5 -> Mod OptionFields Int
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:58:23: error:
    • Variable not in scope: (<>) :: Mod f12 a11 -> Mod f11 a10 -> t4
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:59:23: error:
    • Variable not in scope:
        (<>) :: t4 -> Mod f10 a9 -> Mod FlagFields Bool
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:62:23: error:
    • Variable not in scope: (<>) :: Mod f15 a14 -> Mod f14 a13 -> t5
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:63:23: error:
    • Variable not in scope:
        (<>) :: t5 -> Mod f13 a12 -> Mod FlagFields Bool
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:71:35: error:
    • Variable not in scope:
        (<>) :: Mod f1 a1 -> Mod f0 a0 -> Mod OptionFields (a -> a)
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:168:12: error:
    • Variable not in scope: (<>) :: InfoMod a17 -> InfoMod a16 -> t6
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)

Main.hs:169:12: error:
    • Variable not in scope:
        (<>) :: t6 -> InfoMod a15 -> InfoMod Options
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘>>’ (imported from Control.Monad)
cabal: Leaving directory '.'
cabal: Error: some packages failed to install:
flaccuraterip-0.3.9 failed during the building phase. The exception was:
ExitFailure 1

eadmaster avatar Oct 24 '20 19:10 eadmaster

This is fixed in my pull request #3

mitchellwhite avatar Apr 24 '21 18:04 mitchellwhite

Thanks @mitchellwhite!

tensor5 avatar Apr 25 '21 17:04 tensor5