MagickWand ./configure can't find MagickWand-config - bash

I've been trying unsuccessfully to install ImageMagick and am stuck at this point. I've dled and phpized MagickWand and am trying to run ./configure and get the error:
checking MagickWand-config in default path... configure: error: Cannot locate configuration program MagickWand-config
I've tried both export PATH=$PATH:/opt/local/bin
and export PATH=$PATH:/opt/local/bin/
and have also tried adding the paths to my .bash_profile file. I've also confirmed that there is a MagickWand-config executable in my /opt/local/bin directory.
Suggestions?

Try sudo apt-get install libmagickwand-dev and then run ./configure. Worked for me on Ubuntu 10.04 after grabbing MagickWand 1.0.8 source from http://www.magickwand.org/download/php/.

Check MagickWand-config - if it doesn't install,
Run sudo apt-get install libmagickwand-dev in your server
Reference the MagicWand-config man pages for further options

Related

msgmerge on macos Catalina

I am trying to run a unix command line for some i18n work on a project. Using gettext library my issue is about running msgmerge
$ msgmerge
zsh: command not found: msgmerge
I tried brew instal gettext and brew link gettext but with no success. This was working well on my previous machine, but can't make it work on a fresh install.
I can confirm binary is available in /usr/local/opt/gettext/bin/msgmerge.
Fixed. When running brew reinstall gettext, command actually give the answer:
If you need to have gettext first in your PATH run:
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.zshrc
Export is only triggered when opening a new zsh prompt, PATH was not updated yet and worked when I re-openned a new window.
I tried running this brew link gettext --force, but I was getting:
$ brew install gettext
Warning: gettext 0.20.2 is already installed and up-to-date
To reinstall 0.20.2, run `brew reinstall gettext`
$ brew link gettext --force
Warning: Refusing to link macOS provided/shadowed software: gettext
If you need to have gettext first in your PATH run:
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile
For compilers to find gettext you may need to set:
export LDFLAGS="-L/usr/local/opt/gettext/lib"
export CPPFLAGS="-I/usr/local/opt/gettext/include"
Then, I just added it to the system path with:
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile
Related:
https://apple.stackexchange.com/questions/299048/can-not-use-the-gettext-which-is-installed-by-brew
Homebrew refusing to link OpenSSL
How to install gettext on MacOS X
Installed, just not linked

Does anyone know how to uninstall freetds from MAC (osx-10.9.4) if installed from source?

Does anyone know how to uninstall freetds from MAC?
I have installed it from source by following instructions:
tar zxvf freetds-stable.tgz
cd freetds-'0.91'
./configure --prefix=/usr/local
make
sudo make install
gem install tiny_tds -- --with-freetds-include=/usr/local/include --with-freetds-lib=/usr/local/lib --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib
I was able to successfully uninstall freetds and tiny_tds gem.
first I uninstalled tiny_tds gem as below:
gem uninstall tiny_tds
To uninstall freetds follow the instructions to configure and build the freetds before running make uninstall.(otherwise it will give this error: make: *** No rule to make target `uninstall'. Stop.
)
cd freetds-'0.91'
./configure --prefix=/usr/local
make
sudo make uninstall
sudo make clean
You will have to remove freetds.conf file manually as below:
sudo rm /usr/local/etc/freetds.conf
To ensure you have successfully uninstalled freetds run the following:
tsql -C
It should not report freetds details.
From the directory you ran 'sudo make install':
sudo make uninstall
sudo rm /usr/local/etc/freetds.conf
That should do it, but you'll have to uninstall the gem separately. Good luck.

How to install bison on mac OSX

I'm trying to install Thrift on my macbook.
Otherwise I got an error:
configure: error: Bison version 2.5 or higher must be installed on the system!
So tried to install Bison on my OS, but I didn't find tutorial on internet.
Does anyone who can tell me how to install Bison on my system ?
Kind Regards
See here. You can install with brew:
brew install bison
Then update your scripts or your shell config to use brew's bison first in
your PATH:
export PATH="$(brew --prefix bison)/bin:$PATH"
Or
export PATH="/usr/local/opt/bison/bin:$PATH"
I needed to set export PATH="/usr/local/opt/bison/bin:$PATH"
brew install bison installs the bison new version at /usr/local/Cellar but this path is not set in the $PATH
To save a ton of time use either Macports or Homebrew. These will install all dependent packages for you.
I use Macports, and after installing it, it's as simple as:
$ sudo port install thrift
and it will be done before your coffee is ready.
I got a warning after brew install bison and when trying brew link bison --force
bison is keg-only, which means it was not symlinked into /usr/local,
because some formulae require a newer version of bison.
If you need to have bison first in your PATH run:
echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.bash_profile
For compilers to find bison you may need to set:
export LDFLAGS="-L/usr/local/opt/bison/lib"
So I suggest you to add these two above flags, instead of forcing the link of /usr/local.
So, above all, you will need below three steps:
brew install bison
echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/bison/lib"
rename the default bison under dir:
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin$'
install the newest version of bison by homebrew:
brew install bison
link the bison :
brew link bison --force
if you need unlink the bison and rename the bison from xcode.
best wish ~~

Installing osm2pgsql from source not actually installing?

I'm trying to install osm2pgsql from source on a Mac using Terminal.
I ran these commands:
git clone git://github.com/openstreetmap/osm2pgsql.git
cd osm2pgsql
./autogen.sh && ./configure && make
And it runs, but then if I try to run an osm2pgsql command, it says:
-bash: osm2pgsql: command not found
There are no further instructions online about how to install from source, so I'm not sure what I'm missing here.
Anyone help me?
Thanks
You might need to install the build-essential and automake packages.
Type the following in the terminal (before trying to install osm2pgsql):
sudo apt-get install build-essential
sudo apt-get install automake
sudo apt-get install checkinstall
You need to add it to your path! To "install" something is really just to let the OS know where it is, because it's too dumb to figure that out on its own, even if you're in the same directory with it. In Unix, every command is a program; when you enter a command, the OS checks the "path" which is just a list of directories where that command might live.
First of all, to test that it's compiled and working properly in its own directory:
./osm2pgsql
If that works, add the current directory to the path variable:
export PATH=$PATH:`pwd`
Now you can execute the command from anywhere.

Install autoreconf on OS X v10.7 (Lion)?

I'm attempting to re-install Ruby 1.9.3 with a patch that will allow me to use ruby-debug.
When following the instructions and running
rvm reinstall 1.9.3 --patch debug --force-autoconf
It runs through and after applying the patch spits out:
rvm requires autoreconf to install the selected ruby interpreter however autoreconf was not found in the PATH.
Unfortunately, googling around for how to install autoreconf on OS X v10.7 (Lion) (or much information about it at all) seems to be a dead end.
If you are using Homebrew, try
brew install automake
Which should also install autoconf and allow rvm to finish installing.
If you want to do this using MacPorts instead of Homebrew, you can do:
sudo port install automake autoconf libtool
I had the same problem and this solved it for me.
If you're using brew, then the autoreconf utility is part of the autoconf package, so install it via:
brew install autoconf
If the problem persists, consider either reinstall or link it again. Use locate autoreconf to find out where it is.
Also check if /usr/local/bin/autoreconf exists (and is linked into the right place), and you've the /usr/local/bin path added in your /etc/paths file.
By downloading the .pkg file from MacPorts and installing it, it does the trick for me.
I had a similar problem, but because Homebrew moved away from the Cellar directory, but for some reasons binaries of this package were still there.
I reinstalled autoconf with the following command and autoreconf is in the right PATH now: brew reinstall autoconf
I solved my autoreconf problem adding the path to my shell:
sudo pico /etc/paths
then I added the line
/sw/bin
where I found the autoreconf and autoconf files and saved everything.
Since then I can use autoreconf without any problems.

Resources