I am trying to install Luasec on Ubuntu terminal, but it just keeps displaying this error to me:
Error: Could not find header file for OPENSSL
No file openssl/ssl.h in /usr/local/include
No file openssl.h/ssl.h/ in /usr/include
No file openssl/ssl.h in /include
You may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command.
When I check OpenSSL version it says its 1.1.1f
So how do I proceed?
sudo apt -y install libssl-dev
Despite the lowercase l this solution works for me (independent of what some responders told here)
luarocks install openssl
Fixed the issue by Installing OpenSSL with terminal through Luarocks with the command:
Luarocks install openssl
And now after installing it, it works.
Related
Initially I was trying to use devtools::install_github("EdwinTh/padr") where I got the following error:
Error in curl::new_handle() : An unknown option was passed in to libcurl
After some time I found out that devtools uses curl/RCurl which wraps the current version of curlon the host machine.
The host(Ubuntu 14.04.5 LTS) machine version of curl is:
1$ curl -V
curl 7.61.0 (x86_64-pc-linux-gnu) libcurl/7.61.0 OpenSSL/1.0.1f zlib/1.2.8 libssh2/1.8.0 librtmp/2.3
where curlis located in:
12$ which curl
/usr/local/bin/curl
and is working fine when using curl::new_handle()directly from the terminal
In comparison the curl/RCurl version is:
> RCurl::curlVersion()
$age
[1] 3
$version
[1] "7.35.0"`
I'm assuming that this might be the underlying issue. My problem now is how to let Rs curl/RCurl point to the corresponding version.
I have tried everything I found so far on that topic for R like:
install.packages("RCurl", type="source") and
install.packages("curl", type="source")
as well as adjusting curlon the host machine:
wget https://libssh2.org/download/libssh2-1.8.0.tar.gz
tar zxvf llibssh2-1.8.0.tar.gz
cd libssh2-1.8.0
./configure
make
sudo make install
wget http://curl.haxx.se/download/curl-7.61.0.tar.gz
tar zxvf curl-7.61.0.tar.bz2
cd curl-7.61.0
./configure --with-libssh2=/usr/local
make
sudo make install
But I always get the same version for curl/RCurl 7.35.0 instead of 7.61.0.
Appreciate any insights!
I'm running Ubuntu 18.04, and ran into the same problem when I tried and failed to install the Tidyerse R package. As a dependency it tried to install curl 4.3 although I have already curl 7.58.0-2ubuntu3.12 installed. So to update the OS wouldn't help as long as R doesn't realize there is already an existing curl version installed.
Solved it for me: sudo apt install libcurl4-openssl-dev and sudo apt install libssl-dev
I know from the Odoo website that Odoo needs an special wkhtmltopdf version:
Danger
to print PDF reports, you must install wkhtmltopdf yourself: the version of wkhtmltopdf available in debian repositories does not support headers and footers so it can not be installed automatically. The recommended version is 0.12.1 and is available on the wkhtmltopdf download page, in the archive section. As there is no official release for Debian Jessie, you can find ours on the extra section of our nightly server.
So, it is possible to install the library on Debian Jessie because there is an extraofficial version with qt patched.
If I use the wkhtmltopdf for Debian Jessie in Debian Stretch, the library is not working.
If I install wkhtmltopdf using sudo apt-get install wkhtmltopdf I get this warning when I try to print any report:
Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.No protocol specified
QXcbConnection: Could not connect to display
Is there any other way to install wkhtmltopdf for Odoo in Debian Stretch?
Is there any other available version for Odoo 10 and Debian Stretch?
Update
I have found this Git Hub issue. It seems it is not available yet
Update (2019/02/28)
I found this wiki where Odoo Developers say the version 0.12.5-1 is recommended for Odoo 10 and later
I have read this on a Git Hub Issue. The writer seems one developer of Wkhtmltopdf:
Currently working on a reworked packaging system in the wkhtmltopdf/packaging repository, you can download preview builds for linux. Will create something for 0.12.1 if required, would appreciate fixing any issues with odoo before the 0.12.5 release.
wkhtmltox_0.12.1.3-1~stretch_amd64.deb
wkhtmltox_0.12.1.3-1~stretch_i386.deb
The solution below worked:
Download libssl and libpng from debian repo and install
wget http://ftp.fr.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.49-1+deb7u2_amd64.deb
wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u8_amd64.deb
dpkg -i libssl1.0.0_1.0.1t-1+deb8u8_amd64.deb
dpkg -i libpng12-0_1.2.49-1+deb7u2_amd64.deb
Then download wkhtmltopdf and install :
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.2.1/wkhtmltox-0.12.2.1_linux-jessie-amd64.deb17
dpkg -i wkhtmltox-0.12.2.1_linux-jessie-amd64.deb
Then add symlink:
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
It It hapened to me when I tried to use it in Ubuntu, I had to download the source and compile it, check this solution from a github issue, there is a solution by compiling the wkhtmltopdf source and eventually (if it's not doen) qt :
Source :
https://github.com/OCA/account-financial-reporting/issues/33
It's likely that you'll have to manually compile the latest version of
wkhtmltopdf and qt:
Remove wkhtmltopdf and related package
$ sudo apt-get remove libqt4-dev qt4-dev-tools wkhtmltopdf
$ sudo apt-get autoremove
Install requirement package for compiling
$ sudo apt-get install openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig -y
Clone from git wkhtmltopdf and qt source
$ git clone git://github.com/wkhtmltopdf/wkhtmltopdf.git wkhtmltopdf
$ mkdir qt-wkhtmltopdf && cd qt-wkhtmltopdf
$ git clone https://www.github.com/wkhtmltopdf/qt --depth 1 --branch wk_4.8.7 --single-branch .
Compile qt
$ sudo ./configure -nomake tools,examples,demos,docs,translations -opensource -prefix "`pwd`" `cat ../wkhtmltopdf/static_qt_conf_base ../wkhtmltopdf/static_qt_conf_linux | sed -re '/^#/ d' | tr '\n' ' '`
$ sudo make -j3
$ sudo make install
Compile wkhtmltopdf
$ cd ../wkhtmltopdf
$ sudo ../qt-wkhtmltopdf/bin/qmake
$ sudo make -j3
$ sudo make install Reboot
$ sudo reboot
Trying to install tmux on OSX but getting:
$ brew install tmux
Error: You must `brew link libevent' before tmux can
mdurrant#C02MH2DQFD58:~
$ brew link libevent
Linking /usr/local/Cellar/libevent/2.0.21...
Warning: Could not link libevent. Unlinking...
Error: Permission denied - /usr/local/include/event2
I can't use sudo with brew.
I'd tried installing libevent previously by compiling it locally and now I can't seem to get rid of the traces of it, though I went to where I had it and did sudo make uninstall
In the end the answer was:
Install iterm2
brew install automake
brew install pkg-config
rm configure
sh autogen.sh
./configure
make
make install
This helped (http://whiletruecode.com/post/installing-iterm2-and-tmux-osx) and I had an almost identical experience though the final step was not the broken link but to do the above
I am trying to install RHadoop. I have used following instruction in a Virtual box Ubuntu 12.04 64 bit version.
$wget https://launchpad.net/ubuntu/quantal/+source/r-base/2.15.1-3ubuntu1/+files/r-base_2.15.1.orig.tar.gz
$ tar -zxvf r-base_2.15.1.orig.tar.gz
$ sudo apt-get install gfortran
$ cd R-2.15.1/
$ ./configure --with-x=no
When I run this command, I get the error mentioned above. Google also does not have any suggestions for this error although many talk about X11
Readline is a GNU package that you can find here; your first option consists in installing it before trying to build R again.
Alternatively, if you are sure you do not need R to be built with this library, you can simply set with-readline to "no":
./configure --with-x=no --with-readline=no
Setting readline to no is something I considered, but than think of this, what if you need it. I am not even sure what it is 100%, but I assume it lets R read from user input of some sort.
Anyways, I just resolved this error by installing readline-devel on centos via yum. On debian I think it's something like libreadline-dev. The point is that you need development files which include .h files necessary for R.
This solution works for me:
error: --with-x=yes (default) and X11 headers/libs are not available
Solution:
Code:
$ sudo apt-get install xorg-dev
For Centos 7, to install X11
# yum install xorg-x11-server-devel libX11-devel libXt-devel
Now ./configure
i have ubuntu-10.10 desktop version i installed following packages using apt-get install
libglib2.0-dev
libSM-dev
libxrender-dev
libfontconfig1-dev
libxext-dev
libgl1-mesa-dev
libglu-meas-dev
i downloaded qt-sdk-linux-x86-opensource-2010.05.1.bin
changed permission of bin file
chmod u+x qt-sdk-linux-x86-opensource-2010.05.1.bin
./qt-sdk-linux-x86-opensource-2010.05.1.bin
it gives me an error like not able to create symbolic link to libQtCore-4.7.0 and installation aborts.
can any one suggest me what is going wrong and how can i over come this issue
You can just install qt-sdk package from Ubuntu repositories, if you must install by hand, try running it with sudo;
sudo ./qt-sdk-linux-x86-opensource-2010.05.1.bin