Closed ebrohman closed 7 years ago
Fix for me was to:
brew install libxmlsec1
I have the same error on Ubuntu 16.04. Anyone with a fix?
apt-get install libxmlsec1
doesn't fix it.
The solution:
sudo apt-get install libxmlsec1-dev
I did brew install libxmlsec1
but still getting the following error on bundle: An error occurred while installing nokogiri-xmlsec-me-harder (0.9.3pre), and Bundler cannot continue. Make sure that `gem install nokogiri-xmlsec-me-harder -v '0.9.3pre'` succeeds before bundling.
Is there any other fix?
This was the fix for me the MAKEFILE kept failing to be created due to a missing -lltdl which I think is a dependency to the xmlsec1-openssl lib:
yum install libtool-ltdl-devel
I also noted this when I figured it out in the instructure/nokogiri-xmlsec-me-harder repository: Link: https://github.com/instructure/nokogiri-xmlsec-instructure/pull/4/commits/5fbaa9214268f380008f06e84d3d29d390df34da
This is mainly for RHEL/CentOS systems though...
The fix for me was yum install xmlsec1-devel
On OSX, brew install postgresql
solves the second set of problems
For anyone finding this through a search, the solution:
brew install libxmlsec1
also works for this error:
An error occurred while installing nokogiri-xmlsec-instructure
(0.9.6), and Bundler cannot continue.
Make sure that gem install nokogiri-xmlsec-instructure -v '0.9.6' --source 'https://rubygems.org/'
succeeds before bundling.
As this is the first Google hit for nokogiri-xmlsec-instructure
issue , the below may also save some headaches for folks.
On MacOS it looks like this gem doesn't compile with Xcode 12's command line tools. In addition to the above advice (libxmlsec1
and postgresql
), you may also need to install Xcode11.7 and set command line tools to point to that version when running bundle:
@nasht Thanks! The command line tools thing was it for me! Never would've figured that out on my own... 🙄
@nasht 's comment worked for me by downloading Xcode11.7 from Apple, then running the following in my terminal:
sudo xcode-select -switch <path/to/>Xcode.app
Source for above NOTE* Don't forget to switch back to your latest Xcode once you install the gem
I was having similar issues on red hat 8. The key was enabling another repo that contained the necessary xmlsec1-devel
dependency.
sudo yum-config-manager --enable codeready-builder-for-rhel-8-rhui-rpms
sudo yum install xmlsec1 xmlsec1-devel
Recently was having an issue getting nokogiri-xmlsec-instructure
built and installed, this was the first search result. Just wanted to leave an updated solution that worked for me with macOS Ventura (Apple M1 Silicon) and Xcode 14 https://stackoverflow.com/questions/74554406/undefined-symbols-for-architecture-arm64-building-nokogiri-xmlsec-instructure-ru/.
On branch stable, bundle install fails on OSX EL Capitan. Is there a workaround. I see in
app.rb
this line of interest:Is there a way to successfully bundle install? Error: