Problem with zlib version when installing RStudio Desktop from source.

I'm trying to install RStudio Desktop using these instructions. When I run the command

cmake .. -DRSTUDIO_TARGET=Desktop -DRSTUDIO_PACKAGE_BUILD=1

I get the message:

CMake Error at /usr/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.11")
Call Stack (most recent call first):
  /usr/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.12/Modules/FindZLIB.cmake:112 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/cpp/core/CMakeLists.txt:174 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/balter/rstudio/build/CMakeFiles/CMakeOutput.log".
See also "/home/balter/rstudio/build/CMakeFiles/CMakeError.log".

This is the error log:

CMakeError.log

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/balter/rstudio/build/CMakeFiles/CMakeTmp

Run Build Command:"/home/balter/conda/bin/make" "cmTC_6613e/fast"
/home/balter/conda/bin/make -f CMakeFiles/cmTC_6613e.dir/build.make CMakeFiles/cmTC_6613e.dir/build
make[1]: Entering directory '/home/balter/rstudio/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_6613e.dir/CheckSymbolExists.c.o
/home/balter/conda/bin/x86_64-conda_cos6-linux-gnu-cc   -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe  -fPIE   -o CMakeFiles/cmTC_6613e.dir/CheckSymbolExists.c.o   -c /home/balter/rstudio/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_6613e
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6613e.dir/link.txt --verbose=1
/home/balter/conda/bin/x86_64-conda_cos6-linux-gnu-cc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe   -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -pie -Wl,-z,relro,-z,now  CMakeFiles/cmTC_6613e.dir/CheckSymbolExists.c.o  -o cmTC_6613e 
/home/balter/conda/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: CMakeFiles/cmTC_6613e.dir/CheckSymbolExists.c.o: in function `main':
CheckSymbolExists.c:(.text.startup+0x3): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_6613e.dir/build.make:87: cmTC_6613e] Error 1
make[1]: Leaving directory '/home/balter/rstudio/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_6613e/fast] Error 2

File /home/balter/rstudio/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/balter/rstudio/build/CMakeFiles/CMakeTmp

Run Build Command:"/home/balter/conda/bin/make" "cmTC_c8506/fast"
/home/balter/conda/bin/make -f CMakeFiles/cmTC_c8506.dir/build.make CMakeFiles/cmTC_c8506.dir/build
make[1]: Entering directory '/home/balter/rstudio/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c8506.dir/CheckFunctionExists.c.o
/home/balter/conda/bin/x86_64-conda_cos6-linux-gnu-cc   -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -DCHECK_FUNCTION_EXISTS=pthread_create -fPIE   -o CMakeFiles/cmTC_c8506.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.12/Modules/CheckFunctionExists.c
Linking C executable cmTC_c8506
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c8506.dir/link.txt --verbose=1
/home/balter/conda/bin/x86_64-conda_cos6-linux-gnu-cc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -DCHECK_FUNCTION_EXISTS=pthread_create  -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -pie -Wl,-z,relro,-z,now  CMakeFiles/cmTC_c8506.dir/CheckFunctionExists.c.o  -o cmTC_c8506 -lpthreads 
/home/balter/conda/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_c8506.dir/build.make:87: cmTC_c8506] Error 1
make[1]: Leaving directory '/home/balter/rstudio/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_c8506/fast] Error 2


Determining if the function getpeereid exists failed with the following output:
Change Dir: /home/balter/rstudio/build/CMakeFiles/CMakeTmp

Run Build Command:"/home/balter/conda/bin/make" "cmTC_b9b1c/fast"
/home/balter/conda/bin/make -f CMakeFiles/cmTC_b9b1c.dir/build.make CMakeFiles/cmTC_b9b1c.dir/build
make[1]: Entering directory '/home/balter/rstudio/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b9b1c.dir/CheckFunctionExists.c.o
/home/balter/conda/bin/x86_64-conda_cos6-linux-gnu-cc   -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -DCHECK_FUNCTION_EXISTS=getpeereid -fPIE   -o CMakeFiles/cmTC_b9b1c.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.12/Modules/CheckFunctionExists.c
Linking C executable cmTC_b9b1c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b9b1c.dir/link.txt --verbose=1
/home/balter/conda/bin/x86_64-conda_cos6-linux-gnu-cc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -DCHECK_FUNCTION_EXISTS=getpeereid  -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -pie -Wl,-z,relro,-z,now  CMakeFiles/cmTC_b9b1c.dir/CheckFunctionExists.c.o  -o cmTC_b9b1c 
/home/balter/conda/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: CMakeFiles/cmTC_b9b1c.dir/CheckFunctionExists.c.o: in function `main':
CheckFunctionExists.c:(.text.startup+0xd): undefined reference to `getpeereid'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_b9b1c.dir/build.make:87: cmTC_b9b1c] Error 1
make[1]: Leaving directory '/home/balter/rstudio/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_b9b1c/fast] Error 2

I do have zlib v1.2.11 installed.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.