PacktPublishing/Hands-On-Machine-Learning-with-CPP

don't know how to run the code examples

Opened this issue · 2 comments

I have an experience with cpp but not cmake i have spend the last 2 days trying to configure the libraries to work in my system but i couldn't !
i really want help
what i do is the following:

  1. tried to install them with something called conan but in vain 90% of them didn't exists in conan
  2. read about cmake and learned how to install them i tried to do it with pytorch first because i alread know how to work with it but get a lot of error tried to figure out how to solve them like cudnn version is not exist ..etc but there is something wrong.
  3. i asked help from a lot of people and communities but there is no useful help yet.
  4. the last thing i tried to do is i downloaded the code sample for the book and go to the folder build scripts then i run it but get a lot of errors again. i know that in the LIBS_DIR is sould give pass to configuration but i don't know what is configuration he is talking about
  5. i want to read this book and take this challenge i spend a lot of time and didn't want to stop now! is there any other ways to run the code vm ,docker what i really missing why it's really hard to add just a thrid-library in cpp world i do it easly with conda in python and cargo in Rust ..javascript!!!!
    please any help!

Hello @abdelkareemkobo, please follow the official instruction to create the Docker development environment. Current books samples are based on outdated 3rd parties so it can be very tricky to setup every thinning for recent version of Ubuntu. Please read the README in the env_scripts folder.

@Kolkir thanks i didn't know that i can do that with docker didn't work with it before. i made a new os and trying to config the docker commands i reached till the command :
docker run -it -v /home/user/code_samples:/development/samples buildenv_libs bash
I didn't understand it well so i tried to run it with like the following :
docker run -it -v /home/kareem/Desktop/Alex/ml_cpp/:ml_cpp buildenv_libs bash
but get unable to find image 'buildenv_libs:latest' locally
can you help me !
when i run sudo docker image ls
i get the following
REPOSITORY TAG IMAGE ID CREATED SIZE
ml_cpp latest 30c95ea36ada 17 minutes ago 18GB
buildenv 1.0 1c51a145002d 4 hours ago 2.09GB
hello-world latest feb5d9fea6a5 17 months ago 13.3kB

what i should do now!