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

Deploy scrtipt failing on cmake. #119

Open
rhys19 opened this issue Jan 30, 2022 · 3 comments
Open

Deploy scrtipt failing on cmake. #119

rhys19 opened this issue Jan 30, 2022 · 3 comments

Comments

@rhys19
Copy link

rhys19 commented Jan 30, 2022

Log of deploy script

ubuntu@vps-3bfb99c9:~$ curl -L https://raw.githubusercontent.com/MoneroOcean/nodejs-pool/master/deployment/deploy.bash | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0This assumes that you are doing a green-field install.  If you're not, please exit in the next 15 seconds.
100  5789  100  5789    0     0  49905      0 --:--:-- --:--:-- --:--:-- 49905
Continuing install, this will prompt you for your password if you're not already running as root and you didn't enable passwordless sudo.  Please do not run me as root!
Hit:1 http://nova.clouds.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://nova.clouds.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[client]
user=root
password=WJaG0PGlyXYJHdqSIIwsOYlwZFSBKMC6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'python-is-python2' instead of 'python'
Note, selecting 'libunwind-dev' instead of 'libunwind8-dev'
Package python-virtualenv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-virtualenv' has no installation candidate
fatal: destination path 'nodejs-pool' already exists and is not an empty directory.
Failed to enable unit: Unit file ntp.service does not exist.
fatal: destination path 'monero' already exists and is not an empty directory.
M       external/randomx
Previous HEAD position was 8fef32e45 Merge pull request #7292
HEAD is now at 2222bea92 Merge pull request #7902
Submodule path 'external/randomx': checked out 'fe4324e8c0c035fec3affd6e4c49241c2e5b9955'
mkdir -p build/release
cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../..
-- CMake version 3.16.3
-- ccache NOT found! Please install it for faster rebuilds.
-- Building without build tag
-- Checking submodules
-- Submodule 'external/miniupnp' is up-to-date
-- Submodule 'external/unbound' is up-to-date
-- Submodule 'external/rapidjson' is up-to-date
-- Submodule 'external/trezor-common' is up-to-date
-- Submodule 'external/randomx' is up-to-date
-- Submodule 'external/supercop' is up-to-date
-- Could not find DEVELOPER_LOCAL_TOOLS in env (not required)
-- BOOST_IGNORE_SYSTEM_PATHS defaults to OFF
-- Could not find DEVELOPER_LIBUNBOUND_OLD in env (not required)
-- Building for a 64-bit system
-- Building internal libraries as static
-- Using LMDB as default DB type
-- Stack trace on exception enabled (using easylogging++)
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
  OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.16/Modules/FindOpenSSL.cmake:447 (find_package_handle_standard_args)
  CMakeLists.txt:505 (find_package)


-- Configuring incomplete, errors occurred!
See also "/usr/local/src/monero/build/release/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/monero/build/release/CMakeFiles/CMakeError.log".
make: *** [Makefile:92: cmake-release] Error 1
mkdir -p build/release
cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../..
-- CMake version 3.16.3
-- ccache NOT found! Please install it for faster rebuilds.
-- Building without build tag
-- Checking submodules
-- Submodule 'external/miniupnp' is up-to-date
-- Submodule 'external/unbound' is up-to-date
-- Submodule 'external/rapidjson' is up-to-date
-- Submodule 'external/trezor-common' is up-to-date
-- Submodule 'external/randomx' is up-to-date
-- Submodule 'external/supercop' is up-to-date
-- Could not find DEVELOPER_LOCAL_TOOLS in env (not required)
-- BOOST_IGNORE_SYSTEM_PATHS defaults to OFF
-- Could not find DEVELOPER_LIBUNBOUND_OLD in env (not required)
-- Building for a 64-bit system
-- Building internal libraries as static
-- Using LMDB as default DB type
-- Stack trace on exception enabled (using easylogging++)
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
  OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.16/Modules/FindOpenSSL.cmake:447 (find_package_handle_standard_args)
  CMakeLists.txt:505 (find_package)


-- Configuring incomplete, errors occurred!
See also "/usr/local/src/monero/build/release/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/monero/build/release/CMakeFiles/CMakeError.log".
make: *** [Makefile:92: cmake-release] Error 1
ubuntu@vps-3bfb99c9:~$ 

OS: Ubuntu 20.04
Plain: Yes
Running under root? No
Running user as passwordless sudo? Yes

From looking at the error it looks like you guys are missing a list of dependencies for us to install any list of those anywhere?

@rhys19
Copy link
Author

rhys19 commented Jan 30, 2022

Installed a few dependents it was erroring with and so fr it seems to be working will keep this open incase I come across anymore errors

@gwijayas
Copy link

gwijayas commented Feb 22, 2022

Yes, deploy.bash need to update to includes many requirements. Ubuntu have monero packages so I install the dependencies lists based from that page:

sudo apt install build-essential make cmake libssl-dev libboost-filesystem-dev libboost-date-time-dev libboost-locale-dev \
libboost-program-options-dev libboost-regex-dev libboost-serialization-dev libboost-system-dev libboost-thread-dev \
 libboost-thread-dev libboost-chrono-dev libgtest-dev libhidapi-dev libreadline-dev libzmq3-dev 

@jakbin
Copy link

jakbin commented Dec 12, 2023

And also install mysql and libunbound-dev

sudo apt install mysql-server libunbound-dev

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

No branches or pull requests

3 participants