Wand-0.4.0 with Centos 7 - wand

Getting symbol errors trying to use Wand on CentOS 7:
AttributeError: /usr/lib64/libMagickWand.so.2: undefined symbol: DrawSetBorderColor

To get Wand 0.4.0 to work, I needed "ImageMagick-last-devel" from remi instead of the documentation recommeded "ImageMagick-devel"

Related

xcversion update`: NoMethodError: undefined method `first' for nil:NilClass

When downloading xcode 11 with xcode-install 2.6.1, we get this error
xcversion update: NoMethodError: undefined methodfirst' for nil:NilClass
Its a known issue https://github.com/xcpretty/xcode-install/issues/348
How to fix it?
Works for any ruby version manager (chruby, rvm, rbenv, etc or no version manager)
When you call
xcversion update
Get the path of the failing file -> install.rb
Open it in your editor
Comment line 382
A workaround is to comment out the failing call in install.rb, however its path varies by installation.
Check the output of the xcversion command to find it:
Available session is not valid any more. Continuing with normal login.
/usr/local/lib/ruby/gems/2.4.0/gems/xcode-install-2.4.4/lib/xcode/install.rb:444:in `prereleases': undefined method `first' for nil:NilClass (NoMethodError)
from /usr/local/lib/ruby/gems/2.4.0/gems/xcode-install-2.4.4/lib/xcode/install.rb:379:in `fetch_seedlist'
--> /usr/local/lib/ruby/gems/2.4.0/gems/xcode-install-2.4.4/lib/xcode/install.rb
Open that install.rb in a text editor, go to line #382 which calls the prereleases function and comment it out by changing it to
##xcodes += prereleases.reject { |pre| names.include?(pre.name) }
(Note: this is exactly the same solution as provided by Ted, but without the flashing gifs.)

can not use help in octave 3.8.1 on mac

when i enter:
>> help help
i get error message:
error: unable to open /usr/local/Cellar/octave/3.8.1_1/share/octave/3.8.1/etc/macros.texi for reading
error: called from:
error: /usr/local/Cellar/octave/3.8.1_1/share/octave/3.8.1/m/help/__makeinfo__.m at line 103, column 5
error: /usr/local/Cellar/octave/3.8.1_1/share/octave/3.8.1/m/help/help.m at line 99, column 22
How could i solve it? I'm using this on MacOS 10.10.2.
Check if you have the documentations installed !
Depending on how you have to installed octave, you have to specify somehow to install also the documentations.
If you need more help, then provide more info, on how octave has been installed.
If you have installed through home-brew, try to reinstall it with with-docs option i.e.
brew reinstall octave --with-docs

Guacamole - LibPNG undefined reference to 'png_set_longjmp_fn'

When running make while installing Guacamole 0.9.0, I get the following error:
undefined reference to 'png_set_longjmp_fn'` in /home/src/libguac/.libs/libguac.so.
Apparently, this error pops up when there is something wrong with libpng. I tried to install a new version of libpng (16) but the error persisted.
Anyone know how do fix this?
I am running Ubuntu 14.01 and libpng version 12.
Thanks in advance.

Installing Behat via Pear on Mac Os X Problems

I am using the follwoing turotiral to install behat and mink on my mountain lion macbook.
http://www.ifusio.com/blog/how-to-install-behat-mink-on-mac-osx
It all seems to go fine until you run the behat command , then I get the following error
PHP Fatal error: Class 'Symfony\Component\Console\Helper\ProgressHelper' not found in /Users/waseem/pear/share/pear/Symfony/Component/Console/Application.php on line 966
PHP Stack trace:
PHP 1. {main}() /Users/waseem/pear/bin/behat:0
PHP 2. Behat\Behat\Console\BehatApplication->__construct() /Users/waseem/pear/bin/behat:26
PHP 3. Symfony\Component\Console\Application->__construct() /Users/waseem/pear/share/pear/behat/src/Behat/Behat/Console/BehatApplication.php:32
PHP 4. Symfony\Component\Console\Application->getDefaultHelperSet() /Users/waseem/pear/share/pear/Symfony/Component/Console/Application.php:75
Fatal error: Class 'Symfony\Component\Console\Helper\ProgressHelper' not found in /Users/waseem/pear/share/pear/Symfony/Component/Console/Application.php on line 966
Call Stack:
0.0002 632656 1. {main}() /Users/waseem/pear/bin/behat:0
0.0036 1350424 2. Behat\Behat\Console\BehatApplication->__construct() /Users/waseem/pear/bin/behat:26
0.0036 1350504 3. Symfony\Component\Console\Application->__construct() /Users/waseem/pear/share/pear/behat/src/Behat/Behat/Console/BehatApplication.php:32
0.0036 1350816 4. Symfony\Component\Console\Application->getDefaultHelperSet() /Users/waseem/pear/share/pear/Symfony/Component/Console/Application.php:75
If i install it via the Github method it all seems fine , this is just bugging me why this happens . I don't have Symfony on the machine.
Maybe because I installed --alldeps ? I have tried uninstalling and trying again and same issue
Behat PEAR channel is not maintained anymore. Latest Behat versions (>=2.4) are not available there.
The best and easiest way to install Behat is to use composer. I'd recommend to follow the original docs. Pear method is not listed there anymore.
Thanks for that , however the only method i got to work for me on Mac OS X reliably and I tried on both snow lepoard and Mountain lion was using the .phar method of installing.
The composer method although it seems simpler kept producing errors when following the guide found at
http://docs.behat.org/cookbook/behat_and_mink.html
The error i got is below so I stuck to using the phar files.
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
Unable to parse file "/Users/waseem/Behat/vendor/behat/mink-extension/src/Behat/MinkExtension/services/sessions/selenium2.xml".
[InvalidArgumentException]
[ERROR 1840] Element '{http://symfony.com/schema/dic/services}parameter', attribute 'type': [facet 'enumeration'] The value 'integer' is not an element of the set {'collection', 'service', 'string', 'constant'}. (in /Users/waseem/Behat/ - line 20, column 0)
[ERROR 1824] Element '{http://symfony.com/schema/dic/services}parameter', attribute 'type': 'integer' is not a valid value of the atomic type '{http://symfony.com/schema/dic/services}parameter_type'. (in /Users/waseem/Behat/ - line 20, column 0)
Have a look at behat\autoload_map.php. This file substitutes for the Symfony autoloader when that file is not found. It contains an array that maps namespace\class to directory and file. With a few additions, you can get this version of Behat working.
If it is true, as others have stated, that the PEAR channel is no longer supported for Behat, you are on your own with this solution. Personally, I'll be looking into another method to keep my Behat installation up to date.

Error: undefined method `like' for Sequel:Module

I get this error:
Error: undefined method `like' for Sequel:Module
using:
#info = DB[:info].where(Sequel.like(:content, "%#{params[:sc]}%")) if params[:sc]
I found the example code in Sequel's documentation:
DB[:artists].where(Sequel.like(:name, 'A%'))
What's wrong with my code?
Which version of Sequel are you running? The documentation assumes the latest version, so if you aren't using the latest version, you should upgrade.

Resources