Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'nslookup' tool missing while executing "./build.sh -b l4v" #514

Closed
GooTal opened this issue Aug 9, 2022 · 3 comments
Closed

'nslookup' tool missing while executing "./build.sh -b l4v" #514

GooTal opened this issue Aug 9, 2022 · 3 comments
Labels

Comments

@GooTal
Copy link

GooTal commented Aug 9, 2022

I cloned this repo and executed this command "./build.sh -b l4v", then got message :

.....
cabal-install    > Linking .stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build/cabal/cabal ...
cabal-install    > copy/register
cabal-install    > Installing executable cabal in /root/.stack/snapshots/x86_64-linux-tinfo6/f04d0d45be1db2d1a4535c7134bb900ee49fac5cd84a673d5abb9a8554c6afdd/9.0.2/bin
Completed 22 action(s).
stack exec -- ./stack-path cabal v2-update
Config file path source is default config file.
Config file /root/.cabal/config not found.
Writing default configuration to /root/.cabal/config
Warning: 'nslookup' tool missing - can't locate mirrors

I waited for an hour and it seems stucked here.

So i added dnsutils in scripts/l4v.sh and got no warning about nslookup. But it still stucked here:

.....
cabal-install    > Linking .stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0/build/cabal/cabal ...
cabal-install    > copy/register
cabal-install    > Installing executable cabal in /root/.stack/snapshots/x86_64-linux-tinfo6/f04d0d45be1db2d1a4535c7134bb900ee49fac5cd84a673d5abb9a8554c6afdd/9.0.2/bin
Completed 22 action(s).
stack exec -- ./stack-path cabal v2-update
Config file path source is default config file.
Config file /root/.cabal/config not found.
Writing default configuration to /root/.cabal/config

Did I miss something? Any idea to solve this problem? Thanks a lot.

@lsf37
Copy link
Member

lsf37 commented Oct 17, 2022

Hi @GooTal -- there is no build.sh command in this repo. Are you working on the docker container repo?

The scripts in there are meant to run inside the container, and dnsutils should definitely be installed there (the containers are built regularly and the l4v build seems to be working). Instead of building it, you can also pull the container from docker directly.

@lsf37 lsf37 added the question label Oct 17, 2022
@GooTal
Copy link
Author

GooTal commented Oct 17, 2022

Oh, thank you.
I can`t recall the details about this problem. But i remember solving this problem by adding 'sudo' command. It took me quite long time because i was not quite familiar with cabal. Anyway, the problem solved.

@GooTal GooTal closed this as completed Oct 17, 2022
@lsf37
Copy link
Member

lsf37 commented Oct 18, 2022

No worries, glad it worked in the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants