phantomjs phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory

Uncategorized

I was receiving this error after installing phantomjs on my Linux Vagrant Instance.  The fix was very simple.  Just entered the following line and it worked.

sudo apt-get install libfontconfig

So basically just had to make sure that libfontconfig was installed.  Found the fix here.

Chef-Apply Mac OS X Issue

Uncategorized

I was having an issue wherein when I ran chef-apply hello.rb as instructed on the chef tutorial I received a long error message:

/opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs’: Could not find chef (>= 0) amongst [activesupport-4.1.1, activesupport-3.2.18…and then a ton more

The way I fixed this issue was simply to type:

rvm reset

Not too sure as to why this works, but it fixed my problem, and hopefully will work for you.