Closed Pankaj734 closed 2 years ago
I just now (2021-Aug-26) tried the install-p4dev-v2.sh script on a freshly installed Ubuntu 18.04 system that I created with the 'minimal install' choice. It completed with no errors.
Are you starting from a freshly installed Ubuntu 18.04 system? Or a system where many packages may have been added to it after the system was first installed? There could be any number of Ubuntu packages that, if they were installed before running the install-p4dev-v2.sh script, might cause it to fail. I do not have a list of such packages, because determining what that list is would pretty much require someone trying out all possible combinations of packages and running the script and seeing which combinations work and which fail. I only ever try to run this script on a freshly installed Ubuntu 18.04 system, with sudo apt-get install git
added, so I can run git
to clone a copy of my p4-guide repository.
Did your system run out of disk space, perhaps? It needs something a bit under 12 GBytes of free disk space when the script begins, in my testing. If it runs out of disk space in the middle, it could fail in any number of ways that are difficult to predict.
You also need a reliable Internet connection throughout the running of the script, as it downloads additional software from the Internet while it runs, at multiple different points of time, not only at the beginning.
I already repeated most of it in my previous comment, but take a look at the instructions here to see if you are missing any of the requirements: https://github.com/jafingerhut/p4-guide/blob/master/bin/README-install-troubleshooting.md#quick-instructions-for-successful-install-script-run
Thank you. I was installing on platform which is being in use for a long time.
Closing this issue.
While installing Behavioral-model on ubuntu 18.04 Machine, I am facing an error while installing Thrift v0.11.0. I am installing using the script 'install-p4dev-v2.sh'. I have attached a screenshot to this issue. All the dependencies are installed while installing Thrift. The log says
libtool: link: g++ -Wall -Wextra -pedantic -g -O2 -o .libs/concurrency_test concurrency/Tests.o -L/usr/lib/x86_64-linux-gnu ../../../lib/cpp/.libs/libthrift.so -lrt -lpthread ../../../lib/cpp/.libs/libthrift.so: undefined reference to `OPENSSL_sk_pop_free'
../../../lib/cpp/.libs/libthrift.so: undefined reference to `OPENSSL_sk_value'
../../../lib/cpp/.libs/libthrift.so: undefined reference to `OPENSSL_sk_num'
../../../lib/cpp/.libs/libthrift.so: undefined reference to `OPENSSL_init_ssl'
../../../lib/cpp/.libs/libthrift.so: undefined reference to `OPENSSL_init_crypto'
../../../lib/cpp/.libs/libthrift.so: undefined reference to `TLS_method'
../../../lib/cpp/.libs/libthrift.so: undefined reference to `SSL_CTX_set_options'
collect2: error: ld returned 1 exit status Makefile:1202: recipe for target 'concurrency_test' failed make[5]: [concurrency_test] Error 1 make[5]: Waiting for unfinished jobs....
If you can help me resolve this then it will be very great of you.