I am trying to install Ejabberd by source code, But When I run make command I have found
following Error.
checking for yaml_parser_initialize in -lyaml... no
checking yaml.h usability... no
checking yaml.h presence... no
checking for yaml.h... no
configure: error: libyaml library was not found
ERROR: Command ['get-deps'] failed!
make: *** [deps/.got] Error 1
I have reinstall libyaml 0.2 and other version using make and brew as well but still not solve the error.
If you know another solution than guide me.
I just install libyaml-dev:
$ sudo apt-get install libyaml-dev
I got the same issue, make and install libyaml then you will be able to compile ejabberd
cd tmp/
sudo wget http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz
sudo tar xzvf yaml-0.1.6.tar.gz
cd yaml-0.1.6/
sudo ./configure
sudo make
sudo make install
You can install libyaml-devel in centos
sudo yum install libyaml-devel
Related
I tried to upgrade with Brew
$ brew upgrade stripe/stripe-cli/stripe
I got:
Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.
AS suggested, I tried
$ arch -arm64 brew install
But got:
Error: Invalid usage: This command requires at least 1 formula or cask argument.
I tried installing Rosetta 2 according to this tutorial
$ /usr/sbin/softwareupdate --install-rosetta --agree-to-license
But I got:
Installing Rosetta 2 on this system is not supported.
Seems homebrew has to be used like this from now on:
arch -arm64 brew upgrade
I added the original argument to arch -arm64 brew upgrade and it worked
$ arch -arm64 brew upgrade stripe/stripe-cli/stripe
Well, all other answers seemed like a workaround for me, I would recommend to do this
cd /opt
sudo mkdir homebrew
sudo chown $(whoami):admin homebrew
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
Then just reload terminal and your brew install xxx should work just fine.
I am using MacOS Big Sur 11.0 Beta.
I tried to install cocoapods but I can't.
First, I tried with;
sudo gem install cocoapods
It says
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
Then, I tried with;
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew cleanup -d -v
brew install cocoapods --build-from-source (also tried with "brew install cocoapods")
It says
Error: pkg-config: no bottle available!
You can try to install from source with:
brew install --build-from-source pkg-config
So, I tried brew install --build-from-source pkg-config, and it says Error: macOS '10.16' is invalid.
Anybody can help me?
So I had to reinitialize a project after my pc crashed and am in the process of reinstalling all my gems on ruby. Unfortunately when I run bundle install I get the following error.
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
current directory: /usr/lib/ruby/gems/2.3.0/gems/pg-0.21.0/ext
/usr/bin/ruby2.3 -r ./siteconf20170925-462-dsymf.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /usr/lib/ruby/gems/2.3.0/gems/pg-0.21.0
for inspection.
Results logged to /usr/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/pg-
0.21.0/gem_make.out
If someone could give me a point in the right direction it would be greatly appreciated.
Try this
sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-common
sudo apt-get install postgresql-9.5 libpq-dev
gem install pg
Recommend with ruby 2.4.2
Cheers!
sudo apt-get install postgresql
sudo apt-get install libpq-dev
When I install watchman using brew install watchman, it got this Error: You must brew link pcre before watchman can be installed. So I try brew link pcre and brew link --overwrite pcre, I just got
linking /usr/local/Cellar/pcre/8.36...
Error: Could not symlink share/man/man3/pcre.3
/usr/local/share/man/man3 is not writable.
Can anyone help?
By design Homebrew (brew) requires the contents of /usr/local to be owned by you. You can fix it easily by running:
sudo chown -R `whoami` /usr/local
from your Terminal.
See here for further explanation.
first
sudo chown -R 'your name' /usr/local
then
brew link pcre -f
then
brew install watchman
it should work
I am on a Mac, using Lion. I am configuring my system for Ruby on Rails development but I ran into some issues. Instead of using brew or other shortcuts I want to configure Ruby on Rails from source. So, here is what I did.
Installed Ruby 2.0
Downloaded the source from the Ruby website
Compiled it by running the following code:
./configure --prefix=/Users/user/Applications/ruby2
make
make install
And made sure the $PATH file is updated to point to /Users/user/Applications/ruby2/bin
So, I am able to call ruby -v or if I do which ruby it does point to my custom compiled version of Ruby.
Installed Node.js
Downloaded the source from the main website
Compiled it by running the following code:
./configure --prefix=/Users/user/Applications/nodejs
make
make install
And made sure the $PATH file is updated to point to /Users/user/Applications/nodejs/bin
So, I am able to call node -v or if I do which node it does point to my custom compiled version of Ruby.
I also did the same steps for openssl and it is also accessible from the console or if I do which openssl it points to /Users/user/Application/openssl/bin
But still when I execute gem install rails I still get the following error:
ERROR: Loading command: install (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
Any idea why?
System Specs
Mac Lion 10.8.4
OpenSSL 1.0.1e 11 Feb 2013
ruby 2.0.0p291
Nodejs v0.10.15
I managed to solve the problem by doing the following. The main problem was the step I followed to compile openssl itself.
Since I am on a 64 bit machine, I had to configure openssl by running the following command first
./configure --prefix=/Users/user/Applications/openssl darwin64-x86_64-cc
./make
./make install
And recompile ruby as such
./configure --prefix=/Users/user/Applications/ruby2 --with-openssl-dir=/Users/user/Applications/openssl
./make
./make install
Note: Even though while compiling ruby it might say... the option --with-openssl-dir is not valid or does not exist, ignore that.
I had very bad time with this ERROR.
Finally i done with it. There is only Once solution either you are with RVM or without RVM.
Make sure you have installed OpenSSL first BEFORE installing ruby.
First you should find where Ruby is:
whereis ruby
will list all the places where it exists on your system, then you can remove all them explicitly. Or you can use something like this:
rm -rf /usr/local/lib/ruby
rm -rf /usr/lib/ruby
rm -f /usr/local/bin/ruby
rm -f /usr/bin/ruby
rm -f /usr/local/bin/irb
rm -f /usr/bin/irb
rm -f /usr/local/bin/gem
rm -f /usr/bin/gem
THEN
sudo apt-get install zlib1g zlib1g-dev build-essential openssl libssl-dev libmysqlclient18 libmysqlclient-dev libyaml-dev curl git-core python-software-properties libpq-dev nodejs
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
tar -xvzf ruby-2.0.0-p247.tar.gz
cd ruby-2.0.0-p247/
./configure --prefix=/usr/local
make
make install
I hope this help you.