Installation of memcached - unable to find libevent - unix

To install memcached I run:
./configure
from memcached server location but I receive error:
checking for libevent directory... configure: error: libevent is required. You can get it from http://www.monkey.org/~provos/libevent/
If it's already installed, specify its path using --with-libevent=/dir/
So I installed libevent manually by downloading from http://www.monkey.org/~provos/libevent/ and running ./configure from downloaded libevent folder
But when I try command:
./configure --with-libevent=/export/home/me/libevent-2.0.21-stable/
I receive same error :
checking for libevent directory... configure: error: libevent is required. You can get it from http://www.monkey.org/~provos/libevent/
If it's already installed, specify its path using --with-libevent=/dir/
How can I check where libevent is installed? Am I specifying the path correctly?
I'm required to install libevent manually as I'm installing memcached from behind a firewall.

After downloading and extracting libevent, you have to configure, build and install it.
Only then can you go back to the memcached directory and rerun its configure, specifying where you installed libevent if it wasn't in one of the standard places (such as /lib, /usr/lib or /usr/local/lib).

Related

configure: error: unrecognized option: `--add-dynamic-module=/usr/local/src/ModSecurity-nginx'

I am trying to install mod security on Ubuntu 20.04 with nginx. when I execute this command:
./configure --with-compat --add-dynamic-module=/usr/local/src/ModSecurity-nginx
I get this error:
configure: error: unrecognized option: --add-dynamic-module=/usr/local/src/ModSecurity-nginx' Try ./configure --help' for more information
j'ai suivi ce site web:
https://www.linuxcapable.com/how-to-install-modsecurity-with-nginx-on-ubuntu-20-04/
More information will be helpful. Are you in the right directory? You need to run that ./configure ... at the nginx source directory, not in the connector directory.
If you don't need to compile and just want an updated version, maybe try using the maintained repo from https://modsecurity.digitalwave.hu/

new version bzip2 ignored while installing R 3.4.0 in home directory in CentOS

I do not have enough permissions, so I need to install R3.4.0 in my home directory.
A newer version of bzip2 is required (>= 1.0.6)
The current version is v1.0.5
I've build bzip2 v1.0.6 in my home directory.
There are 4 directories in the build directory: bin, include, lib, man
I know I need to somehow modify paths, so I tried this:
PATH=path/to/bzip2-1.0.6_build/bin:$PATH
CPATH=path/to/bzip2-1.0.6_build/include:$CPATH
LIBRARY_PATH=path/to/bzip2-1.0.6_build/lib:$LIBRARY_PATH
LD_LIBRARY_PATH=path/to/bzip2-1.0.6_build/lib:$LD_LIBRARY_PATH
However, when I run ./configure to install R, I get the error:
checking if bzip2 version >= 1.0.6... no
checking whether bzip2 support suffices... configure: error: bzip2 library and headers are required
Which is the same error I got before installing bzip2 v1.0.6
But this time when I run bzip2 --version I get:
bzip2, a block-sorting file compressor. Version 1.0.6, 6-Sept-2010.
Which is correct.
How can I make it, so that in the ./configure step, v1.0.6 is taken into acoount over v1.0.5?

Failing to enable stlink in openOCD

I am trying to enable stlink by configuring openOCD. It is saying it cannot find my libusb-1.x file even though it is installed by virtue of installing openOCD as it is a dependency. I am not sure what to do
Here is the error:
checking for LIBUSB1... no
configure: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as
a fallback; consider installing libusb-1.x instead
checking for LIBUSB0... no
checking for HIDAPI... no
checking for HIDAPI... no
checking for HIDAPI... no
checking for LIBFTDI... no
checking for LIBFTDI... no
checking for LIBJAYLINK... no
configure: error: libusb-1.x is required for the ST-Link JTAG Programmer
This is my input:
./configure --enable-stlink
What can I do to fix this?
Thank you
You can try to install libusb via
sudo apt-get install libusb-1.0-0-dev
In my case I have to install pkg-config, which suddenly was not installed in my system.
Then this error gone.
sudo apt install pkg-config
First, install the missing dependency, then configure openOCD while enabling the maintainer mode and FTDI support.
By doing this you will still be able to interface STM32 uCs with ST-Link and FTDI but you will lose JTAG support, but that's ok for non-hard-core stuff.
sudo apt-get install libusb-1.0.0-dev
./configure --enable-maintainer-mode --enable-ftdi

Rails rmagick error Ubuntu c9.io

I've been looking around on other rmagick threads for a good solution. Nothing has worked so far.
I'm working on a rails project on c9 IDE. I managed to successfully install imagemagick via the 'sudo apt get install imagemagick' command.
However when I try to run 'gem install rmagick' I get the following error
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
current directory: /usr/local/rvm/gems/ruby-2.3.0/gems/rmagick-2.15.4/ext/RMagick
/usr/local/rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160608-3911-1hut05d.rb extconf.rb
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... yes
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc' to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found checking for outdated ImageMagick version (<= 6.4.9)... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/rvm/rubies/ruby-2.3.0/bin/$(RUBY_BASE_NAME)
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/usr/local/rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/rmagick-2.15.4/mkmf.log extconf failed, exit code 1
Gem files will remain installed in /usr/local/rvm/gems/ruby 2.3.0/gems/rmagick-2.15.4 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/rmagick-2.15.4/gem_make.out
Try this (working for rmagick 3.0.0):
brew install imagemagick#6
brew link --force imagemagick#6
gem install rmagick

For Ruby on Rails, how to "gem install mysql2" after upgrading from Leopard to Snow Leopard?

It always says:
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/peter/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
similar things happen if it is sqlite3:
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
/Users/peter/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for sqlite3.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Update: at least sqlite3 is building now... that is after I rvm remove 1.9.2-p180 and removing all the 1.9.2, and reinstall by rvm install 1.9.2 and now sqlite3 can be bundle installed, but mysql2 still has problem.
I installed the 64 bit version of MySQL server and it will bundle install, and then this question helped with the
Library not loaded: libmysqlclient.18.dylib (LoadError)
solution: Library not loaded: libmysqlclient.16.dylib error when trying to run 'rails server' on OS X 10.6 with mysql2 gem

Resources