input-output-hk / cardano-sl

Cryptographic currency implementing Ouroboros PoS protocol
Apache License 2.0
3.77k stars 630 forks source link

./scripts/build-explorer-frontend.sh #2477

Open flyingglass opened 6 years ago

flyingglass commented 6 years ago

on the master branch , when run-explorer-web-ui , get the following error messages :

`>$ ./scripts/build-explorer-frontend.sh Error: Could not find or load main class install

rvl commented 6 years ago

This means that purescript-derive-lenses is not installed. You will also need cardano-sl-explorer built and installed.

Instructions for installing these dependencies and running the build are in explorer/frontend/README.md.

Please let us know how that goes.

flyingglass commented 6 years ago

you are right, the purescript-derive-lenses is needed installed, i refer to the explorer/frontend/README.md

when do stack build still with no luck, the error message:

` HA-1.6.4.2: copy/register Progress: 26/149 -- While building custom Setup.hs for package haskeline-0.7.3.0 using: /tmp/stack30297/haskeline-0.7.3.0/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.0.0 build --ghc-options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure 1 Logs have been written to: /home/ada/purescript-derive-lenses/.stack-work/logs/haskeline-0.7.3.0.log

[1 of 2] Compiling Main             ( /tmp/stack30297/haskeline-0.7.3.0/Setup.hs, /tmp/stack30297/haskeline-0.7.3.0/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/Main.o )
[2 of 2] Compiling StackSetupShim   ( /home/ada/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /tmp/stack30297/haskeline-0.7.3.0/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/StackSetupShim.o )
Linking /tmp/stack30297/haskeline-0.7.3.0/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/setup ...
*** Warning: running on POSIX but not building the terminfo backend. ***
You may need to install the terminfo package manually, e.g. with
"cabal install terminfo"; or, use "-fterminfo" when configuring or
installing this package.

Configuring haskeline-0.7.3.0...
Building haskeline-0.7.3.0...
Preprocessing library haskeline-0.7.3.0...
/usr/bin/ld: cannot find -ltinfo
collect2: error: ld returned 1 exit status
linking .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/System/Console/Haskeline/Directory_hsc_make.o failed (exit code 1)
command was: /usr/bin/gcc .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/b`
rvl commented 6 years ago

That means the tinfo system library isn't present, which is a dependency of one of the dependencies.

Try using the "Short version of installation" instructions which use nix. Nix will automatically download and install all of the dependencies.

flyingglass commented 6 years ago

i refer to the Intero and terminfo

do stack exec ghc-pkg -- list |grep terminfo , get the message:

$ stack exec ghc-pkg -- list |grep terminfo terminfo-0.4.0.2

Be Confused

Okay , i will try the short version btw, what the difference between short and long ?