I've downloaded the source code of Asterisk from http://downloads.asterisk.org/pub/telephony/asterisk/.
I'm getting an erro compiling this from source code in Ubuntu 16.04.1, while trying to invoke make :
./libasteriskssl.so: undefined reference to `CRYPTO_num_locks' collect2: error: ld returned 1 exit status Makefile:321: recipe for target 'asterisk' failed make[1]: * [asterisk] Error 1 Makefile:368: recipe for target 'main' failed make: * [main] Error 2
Thanks
As #arheops pointed, the compilation depends on the version of OS and on the version of asterisk itself. The following works in a Debian 9 with an asterisk v14
Let's suppose you have the source code in /usr/src/asterisk. So, first things first. You have to download the dependencies:
# apt-get update
# apt-get install autoconf
# cd /usr/src/asterisk/contrib/scripts
# ./install_prereq install
Then, the configure step:
# cd /usr/asterisk
# ./bootstrap.sh
# ./configure <your fancy options>
# make menuconfig
Now, the compile phase:
# make
Installation of executables and libraries
# make install
Installation of config templates
# make samples
Installation of service
# make config
Your asterisk version not support that libcrypto/openssl version or you have broken openssl install.
Try different versions, as reference get versions from RHEL/Centos of same year as source code you use.
Related
I just downloaded and installed the latest version of linux mint, mate. I want to install julia again but I get an strange error during the installation of v1.3.0
(... lots of output)
/home/usr/julia/usr/include/llvm/Support/MathExtras.h:545:38: required from here
/home/usr/julia/usr/include/llvm/Support/MathExtras.h:189:16: error: ‘static_assert’ was not declared in this scope
Makefile:165: recipe for target 'runtime_ccall.o' failed
make[1]: *** [runtime_ccall.o] Error 1
Makefile:75: recipe for target 'julia-src-release' failed
make: *** [julia-src-release] Error 2
This is somehow strange, but it appears to be related to LLVM. In trying to update LLVM I typed
sudo apt-get update -y
sudo apt-get install -y llvm
But the error keeps showing... any idea what am I missing?
I'm super new to coding in general so apologies for any lack of clarity or conciseness. I'm attempting to make a build for Kallisto to use in RNA sequence alignment and I'm getting stuck at the "make" stage. The cmake was successful after a little fiddling and downloading a CXX compiler, but the make keep exiting with an error status:
[ 27%] Built target htslib
[ 93%] Built target kallisto_core
[ 96%] Linking CXX executable kallisto
/home/wahanson/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/kallisto.dir/build.make:88: src/kallisto] Error 1
make[1]: *** [CMakeFiles/Makefile2:130: src/CMakeFiles/kallisto.dir/all] Error 2
the main error appears to be "cannot find -lz" causing the subsequent errors. From what I understand, this is referencing zlib1g-dev and/or an inability to find it within the path. I have installed zlib1g-dev through conda and made sure to update to no avail. If anyone could let me know what I'm missing or a next place to look it'd be much appreciated. Thanks!
The error looks like the zlib package was not installed in the env. Fortunately, I've recently built kallisto and can share the Conda environment I have been using, which I've tested on both osx-64 and linux-64 platforms:
kallisto-build.yaml
name: kallisto-build
channels:
- bioconda
- r
- conda-forge
- defaults
dependencies:
- autoconf
- automake
- hdf5
- cmake
- cxx-compiler
- zlib
Create and then activate this environment:
conda env create -f kallisto-build.yaml
conda activate kallisto-build
then follow the kallisto instructions for building from source.
I am getting an error while trying to install Rserve 1.8.6. I can successfully install 1.7.3 from CRAN. This is on Mac OS High Sierra.
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [forward] Error 1
make: *** [all] Error 2
ERROR: compilation failed for package ‘Rserve’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rserve’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rserve’
The downloaded source packages are in
‘/private/var/folders/v7/hyxrfmk94p1_03gdrm27fnxncy3vq1/T/RtmpFHKNMe/downloaded_packages’
This worked for me (MacOS):
In terminal:
brew install openssl
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
I'm running Mac OS 10.15 Catalina, I've spent 2 days trying to fix this same problem, scouring the internet for help. I finally managed it by cobbling together solutions from a few different sources.
The key thing I was missing was that Mac OS ships with its own version of openssl which it thinks is superior to anything else you can find. It is wrong. What you need to do is go and download the latest version of openssl, install that, then export THAT library to your library path variable. Here are the steps I took with openssl 1.1.1:
Get the version number for the latest version of openssl from the source (https://www.openssl.org/source/) and then manually install it directly where it's supposed to go:
cd /usr/local/src
If you're getting "No such file or directory", make it:
cd /usr/local && mkdir src && cd src
Download openssl using curl (shown) or using the link above to the source code (make sure you put the file in the directory you just made in the previous step):
curl --remote-name https://www.openssl.org/source/openssl-1.1.1f.tar.gz
Extract and cd in:
tar -xzvf openssl-1.1.1f.tar.gz
cd openssl-1.1.1f
Compile and install (these are the 64 bit Mac OS instructions. Refer to the openssl documentation for 32 bit and other OS instructions):
./Configure darwin64-x86_64-cc shared enable-ec_nistp_64_gcc_128 no-ssl2 no-ssl3 no-comp --openssldir=/usr/local/ssl/macos-x86_64
make depend
sudo make install
This created a new openssl folder so when you export the library path you have to feed it the right openssl folder:
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl#1.1/lib/
Hope that helps you if you haven't figured it out yet, and anyone else in the future who is ready to chuck their computer across the room, like I was.
I want to compile the R source code on my own.
In order to this, I have installed all the required packages and two more with these commands
sudo apt-get build-dep r-recommended
sudo apt install libicu-dev gobjc-5
Then, I run the usual commands to configure with two additional options
./configure --enable-R-shlib --with-ICU
Until now everything ok, but when I tried to compile with the make command and at a certain point I got these error messages
make[2]: Entering directory '/home/myuser/Downloads/R-3.2.3/src/library/Recommended'
begin installing recommended package MASS
Error in untar2(tarfile, files, list, exdir, restore_times) :
incomplete block on file
Makefile:51: recipe for target 'MASS.ts' failed
make[2]: *** [MASS.ts] Error 1
make[2]: Leaving directory '/home/myuser/Downloads/R-3.2.3/src/library/Recommended'
Makefile:39: recipe for target 'recommended-packages' failed
make[1]: *** [recommended-packages] Error 2
make[1]: Leaving directory '/home/myuser/Downloads/R-3.2.3/src/library/Recommended'
Makefile:77: recipe for target 'stamp-recommended' failed
make: *** [stamp-recommended] Error 2
I have searched online but I haven't been able to figure it out what causes that error.
Thanks in advance.
OS: Ubuntu 15.10 64bit
Briefly:
You probably need apt-get build-dep r-base to get build-dependencies, not apt-get build-dep r-recommended
Your error is from also trying to build recommended packages for which you need an additional download step as explained in the documention
So add --without-recommended-packages to the configure call.
I am getting the following error, when I run programs in debug mode.
cannot find -lQtCored
collect2: ld returned 1 exit status
I can run programs normally in release mode. Is it because I have done static linking (I can run my executable without Qt Creator)?
I am using Qt Creator with Qt 4.7.0 on Windows.
The following command would solve this issue:
sudo apt-get install libglu1-mesa-dev
Your linker can not see debug library of QtCore (as shown - -lQtCored, release lib - -lQtCore).
You need checked, really you build this debug library or not, then checked all pathes to this debug library.
PS. Yes, you can run executable without Qt-Creator. You should use qmake (into directory with your .pro) and make (when your qmake has generate Makefile).
PSS. If you want to run .exe then you should put some Qt libraries into directory with .exe.