tetris icon indicating copy to clipboard operation
tetris copied to clipboard

Error when trying to install on Debian 11

Open felipelalli opened this issue 2 years ago • 3 comments

➜  tetris git:(master) stack install tetris

HttpExceptionRequest Request {
  host                 = "raw.githubusercontent.com"
  port                 = 443
  secure               = True
  requestHeaders       = [("User-Agent","The Haskell Stack")]
  path                 = "/fpco/stackage-content/master/stack/stack-setup-2.yaml"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (StatusCodeException (Response {responseStatus = Status {statusCode = 503, statusMessage = "Service Unavailable"}, responseVersion = HTTP/1.1, responseHeaders = [("Connection","keep-alive"),("Cache-Control","no-cache"),("Content-Type","text/html; charset=utf-8"),("Strict-Transport-Security","max-age=31536000"),("X-Content-Type-Options","nosniff"),("X-Frame-Options","deny"),("X-XSS-Protection","0"),("Content-Security-Policy","default-src 'none'; style-src 'unsafe-inline'"),("Fastly-Restarts","1"),("Accept-Ranges","bytes"),("Date","Wed, 12 Jan 2022 02:26:20 GMT"),("Via","1.1 varnish"),("X-Served-By","cache-cgh11131-CGH"),("X-Cache","MISS"),("X-Cache-Hits","0"),("X-Timer","S1641954373.926645,VS0,VE7275"),("Access-Control-Allow-Origin","*"),("X-Fastly-Request-ID","82353a753b9eb3bd81cec5e9e77f2a174ff967a9"),("Expires","Wed, 12 Jan 2022 02:31:20 GMT"),("Vary","Authorization,Accept-Encoding"),("transfer-encoding","chunked")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}) "<!DOCTYPE html>\r\n<!--\r\n\r\nHello future GitHubber! I bet you're here to remove those nasty inline styles,\r\nDRY up these templates and make 'em nice and re-usable, right?\r\n\r\nPlease, don't. https://github.com/styleguide/templates/2.0\r\n\r\n-->\r\n<html>\r\n  <head>\r\n    <title>Unicorn! &middot; GitHub</title>\r\n    <style type=\"text/css\" media=\"screen\">\r\n      body {\r\n        background-color: #f1f1f1;\r\n        margin: 0;\r\n        font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\r\n      }\r\n\r\n      .container { margin: 50px auto 40px auto; width: 600px; text-align: center; }\r\n\r\n      a { color: #4183c4; text-decoration: none; }\r\n      a:hover { text-decoration: underline; }\r\n\r\n      h1 { letter-spacing: -1px; line-height: 60px; font-size: 60px; font-weight: 100; margin: 0px; text-shadow: 0 1px 0 #fff; }\r\n      p { color: rgba(0, 0, 0, 0.5); margin: 10px 0 10px; font-size: 18px; font-weight: 200; line-height: 1.6em;}\r\n\r\n      ul { list-style: none; margin: 25px 0; padding: 0; }\r\n      li { display: table-cell; font-weight: bold; width: 1%; }\r\n")

felipelalli avatar Jan 12 '22 02:01 felipelalli

I can't reproduce. Can you install anything else via stack? Also, try again. This 503 may have just been a blip in the stackage service.

samtay avatar Jan 21 '22 15:01 samtay

Maybe it was a proxy issue. Now, I got another error:

➜  ~ stack install tetris
StateVar  > using precompiled package
splitmix  > using precompiled package
random    > using precompiled package           
ObjectName> configure                         
ObjectName> Configuring ObjectName-1.1.0.2...
ObjectName> build                     
fixed     > configure                 
ObjectName> Preprocessing library for ObjectName-1.1.0.2..
ObjectName> Building library for ObjectName-1.1.0.2..
ObjectName> [1 of 1] Compiling Data.ObjectName
fixed     > Configuring fixed-0.3...  
fixed     > build                     
half      > configure                 
fixed     > Preprocessing library for fixed-0.3..
fixed     > Building library for fixed-0.3..
ObjectName> copy/register             
fixed     > [1 of 1] Compiling Numeric.Fixed
ObjectName> Installing library in /home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/lib/x86_64-linux-ghc-8.10.7/ObjectName-1.1.0.2-DuEbzYljkktH7U5m2bwpk2
ObjectName> Registering library for ObjectName-1.1.0.2..
half      > Configuring half-0.3.1... 
half      > build         
half      > Preprocessing library for half-0.3.1..
half      > Building library for half-0.3.1..
half      > [1 of 2] Compiling Numeric.Half.Internal
fixed     > copy/register 
fixed     > Installing library in /home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/lib/x86_64-linux-ghc-8.10.7/fixed-0.3-CPNOfr1AfWI6VikvQN1ryb
fixed     > Registering library for fixed-0.3..
half      > [2 of 2] Compiling Numeric.Half
half      > copy/register
half      > Installing library in /home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/lib/x86_64-linux-ghc-8.10.7/half-0.3.1-LXV3q5IozPLH8VnDttuR3B
half      > Registering library for half-0.3.1..
OpenGLRaw > configure   
OpenGLRaw > Configuring OpenGLRaw-3.3.4.1...
OpenGLRaw > Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.7: Missing dependency on a foreign
OpenGLRaw > library:    
OpenGLRaw > * Missing (or bad) C library: GL
OpenGLRaw > This problem can usually be solved by installing the system package that
OpenGLRaw > provides this library (you may need the "-dev" version). If the library is
OpenGLRaw > already installed but in a non-standard location then you can use the flags
OpenGLRaw > --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
OpenGLRaw > library file does exist, it may contain errors that are caught by the C
OpenGLRaw > compiler at the preprocessing stage. In this case you can re-run configure
OpenGLRaw > with the verbosity flag -v3 to see the error messages.
OpenGLRaw >             
Progress 7/11           

--  While building package OpenGLRaw-3.3.4.1 (scroll up to its section to see the error) using:
      /home/xxx/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.7 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0 configure --user --package-db=clear --package-db=global --package-db=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/pkgdb --libdir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/lib --bindir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/bin --datadir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/share --libexecdir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/libexec --sysconfdir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/etc --docdir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/doc/OpenGLRaw-3.3.4.1 --htmldir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/doc/OpenGLRaw-3.3.4.1 --haddockdir=/home/xxx/.stack/snapshots/x86_64-linux-tinfo6/483e7d70fd072d8bf8bc9d3a77e7ba18e4a49790221ef3f407c0925f01e8532f/8.10.7/doc/OpenGLRaw-3.3.4.1 --dependency=base=base-4.14.3.0 --dependency=bytestring=bytestring-0.10.12.0 --dependency=containers=containers-0.6.5.1 --dependency=fixed=fixed-0.3-CPNOfr1AfWI6VikvQN1ryb --dependency=half=half-0.3.1-LXV3q5IozPLH8VnDttuR3B --dependency=text=text-1.2.4.1 --dependency=transformers=transformers-0.5.6.2 -f-osandroid -fusegles2 -fuseglxgetprocaddress -fusenativewindowslibraries --exact-configuration --ghc-option=-fhide-source-paths
    Process exited with code: ExitFailure 1

felipelalli avatar Jan 21 '22 22:01 felipelalli

I don't know exactly what your setup looks like on Debian, but it does appear that missing NVIDIA drivers/libs can cause this issue. Did you see and try the suggestions in haskell-opengl/OpenGlRaw#34? And haskell-opengl/OpenGlRaw#37

samtay avatar Feb 23 '22 02:02 samtay