Autoconf Mac OS X Mavericks - php

I need to install FANN extension to AMPPS, so I need to use phpize util.
For using phpize I need autoconf.
I tried to install autoconf via MacPort and Brew, but a get errors.
$ sudo port install autoconf
return error
Error: Port autoconf not found
And
$ brew install autoconf
return error
Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink
share/autoconf/Autom4te/C4che.pm Target
/usr/local/share/autoconf/Autom4te/C4che.pm already exists. You may
want to remove it: rm /usr/local/share/autoconf/Autom4te/C4che.pm
To force the link and overwrite all conflicting files: brew link
--overwrite autoconf
To list all files that would be deleted: brew link --overwrite
--dry-run autoconf
Possible conflicting files are:
/usr/local/share/autoconf/Autom4te/C4che.pm
/usr/local/share/autoconf/Autom4te/ChannelDefs.pm
/usr/local/share/autoconf/Autom4te/Channels.pm
/usr/local/share/autoconf/Autom4te/Configure_ac.pm
/usr/local/share/autoconf/Autom4te/FileUtils.pm
/usr/local/share/autoconf/Autom4te/General.pm
/usr/local/share/autoconf/Autom4te/Getopt.pm
/usr/local/share/autoconf/Autom4te/Request.pm
/usr/local/share/autoconf/Autom4te/XFile.pm
/usr/local/share/autoconf/INSTALL
/usr/local/share/autoconf/autoconf/autoconf.m4
/usr/local/share/autoconf/autoconf/autoconf.m4f
/usr/local/share/autoconf/autoconf/autoheader.m4
/usr/local/share/autoconf/autoconf/autoscan.m4
/usr/local/share/autoconf/autoconf/autotest.m4
/usr/local/share/autoconf/autoconf/autoupdate.m4
/usr/local/share/autoconf/autoconf/c.m4
/usr/local/share/autoconf/autoconf/erlang.m4
/usr/local/share/autoconf/autoconf/fortran.m4
/usr/local/share/autoconf/autoconf/functions.m4
/usr/local/share/autoconf/autoconf/general.m4
/usr/local/share/autoconf/autoconf/go.m4
/usr/local/share/autoconf/autoconf/headers.m4
/usr/local/share/autoconf/autoconf/lang.m4
/usr/local/share/autoconf/autoconf/libs.m4
/usr/local/share/autoconf/autoconf/oldnames.m4
/usr/local/share/autoconf/autoconf/programs.m4
/usr/local/share/autoconf/autoconf/specific.m4
/usr/local/share/autoconf/autoconf/status.m4
/usr/local/share/autoconf/autoconf/types.m4
/usr/local/share/autoconf/autom4te.cfg
/usr/local/share/autoconf/autoscan/autoscan.list
/usr/local/share/autoconf/autotest/autotest.m4
/usr/local/share/autoconf/autotest/autotest.m4f
/usr/local/share/autoconf/autotest/general.m4
/usr/local/share/autoconf/autotest/specific.m4
/usr/local/share/autoconf/m4sugar/foreach.m4
/usr/local/share/autoconf/m4sugar/m4sh.m4
/usr/local/share/autoconf/m4sugar/m4sh.m4f
/usr/local/share/autoconf/m4sugar/m4sugar.m4
/usr/local/share/autoconf/m4sugar/m4sugar.m4f
/usr/local/share/autoconf/m4sugar/version.m4
/usr/local/share/emacs/site-lisp/autoconf-mode.el
/usr/local/share/emacs/site-lisp/autoconf-mode.elc
/usr/local/share/emacs/site-lisp/autotest-mode.el
/usr/local/share/emacs/site-lisp/autotest-mode.elc
/usr/local/share/man/man1/autoconf.1
/usr/local/share/man/man1/autoheader.1
/usr/local/share/man/man1/autom4te.1
/usr/local/share/man/man1/autoreconf.1
/usr/local/share/man/man1/autoscan.1
/usr/local/share/man/man1/autoupdate.1
/usr/local/share/man/man1/config.guess.1
/usr/local/share/man/man1/config.sub.1
/usr/local/share/man/man1/ifnames.1
What I need to do to install autoconf? Or maybe you know other way to install FANN to AMPPS?

Error: Cowardly refusing to sudo brew link
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.

Related

How to add imagick extension to xamppfiles Mac M1

I am attempting to install imagick and use it on my php project via xampp on Mac M1, i manage to install it using below steps
git clone https://github.com/Imagick/imagick
cd imagick
phpize && ./configure
make
sudo make install
And got the path of the imagick.so after building.
/bin/sh /Applications/XAMPP/xamppfiles/htdocs/imagick/imagick/libtool --mode=install cp ./imagick.la /Applications/XAMPP/xamppfiles/htdocs/imagick/imagick/modules
cp ./.libs/imagick.so /Applications/XAMPP/xamppfiles/htdocs/imagick/imagick/modules/imagick.so
cp ./.libs/imagick.lai /Applications/XAMPP/xamppfiles/htdocs/imagick/imagick/modules/imagick.la
Now i am trying to add it on my php.ini file using below methods
extension="imagick.so"
and
extension="/Applications/XAMPP/xamppfiles/htdocs/imagick/imagick/modules/imagick.so"
and
extension=/Applications/XAMPP/xamppfiles/htdocs/imagick/imagick/modules/imagick.so
after restarting the xampp and tried none of it worked, meaning it does not appear on my phpinfo modules and cannot instantiate new Imagick(); any advice

Error installing php 71 with homebrew on my mac

I have been developing with Vallet for some time now. Today i wanted to update laravel 5.4 to 5.5. Before doing so i run composer global update. Causing Vallet to stop working.
Fist i tried to do the following:
cd ~/.composer/
sudo chown -R $(whoami) vendor
source: https://laracasts.com/discuss/channels/general-discussion/getting-valet-not-found-error
I did not solve the issue. Then i decided to reinstall Vallet. Hereby i did the following:
I followed this: https://github.com/laravel/valet/issues/321
Stop and uninstall services
sudo brew services stop php71 dnsmasq nginx
brew uninstall php71 dnsmasq nginx
Remove related config files and valet home folder
sudo rm -r /usr/local/etc/php /usr/local/etc/nginx /usr/local/etc/dnsmasq.conf
sudo rm -r ~/.valet /var/root/.valet
Install services i tried this:
brew install php71
$ brew tap homebrew/php
$ brew install php71
brew install homebrew/php/php71
All gave the following error:
MacBook-Pro:~ mblivier$ brew install homebrew/php/php71
==> Installing php71 from homebrew/php Error: The following formula: php71
cannot be installed as a binary package and must be built from source.
Install the Command Line Tools:xcode-select --install
I new in this and don't know how to solve this. Any suggestions how to install php and go further with reinstalling Vallet?
homebrew is installed and working
You need xcode to build php, so first run:
xcode-select --install
to install xcode and later you can brew install php71
This is answer for your comment, I can't post as comment, need to post because is length limited.
There is one of two things going on here, either you didn't install PHP, or PHP is installed and not currently in any of system aware paths. First I would try to find PHP and make sure it exists:
$ find / -name php -type f
You should see something like:
/path/to/your/php/bin/php
If PHP binary does exist, check your path:
$ echo $PATH
If it does not exist, recompile php.
If PHP exists on your system, make sure the path to the /bin/php file is included. You can edit your ~/.bash_profile and add the custom path like this:
PATH=$PATH:/path/to/your/php/bin/
....
export PATH
Then save and reload the file to ensure your current session has access to new path changes:
$ source ~/.bash_profile
With any luck you can now do a php -v and see the version response.

brew link php71: Could not symlink sbin/php-fpm

I'm trying to install Laravel Valet, which requires php 7.1, but when i run brew install php71, I get the following error:
==> Pouring php71-7.1.10_21.high_sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink sbin/php-fpm
/usr/local/sbin is not writable.
I get the same error when i run brew link php71. If i run php -v, I actually see that I'm currently running PHP 7.1.7.
But when I run valet install, I get:
[DomainException]
Unable to determine linked PHP.
I don't even have an sbin directory in /usr/local.
Any suggestions?
I solved this problem by first creating the directory sbin:
sudo mkdir /usr/local/sbin
then if you are like me using macOS highSierra 10+ you need to run:
sudo chown -R $(whoami) $(brew --prefix)/sbin
after this
brew link php
Installing Laravel Valet, I had a similar issue with sbin not being writable. I had to make the directory, then utilized the solution included at this page. This finally allowed me the proper permissions to run a brew link command with a previously installed version of php 7.1.

Unable to install Libreoffice and cjpeg Pimcore 5

I am installing Pimcore 5 and dependencies on Amazon EC2 Linux AMI(HVM)(t2.micro) with nginx1.2. There are these 2 packages which even if installed but not shown installed in Pimcore System requirement.
I install Libreoffice as:
wget http://ftp.ussg.indiana.edu/tdf/libreoffice/stable/5.4.1/rpm/x86_64/LibreOffice_5.4.1_Linux_x86-64_rpm.tar.gz
yum remove openoffice* libreoffice*
tar -xvf LibreOffice_5.4.1_Linux_x86-64_rpm.tar.gz
cd LibreOffice_5.4.1.2_Linux_x86-64_rpm/RPMS
rm -rf libobasis5.4-gnome-integration-5.4.1.2-2.x86_64.rpm
yum install *rpm
Now output of whereis libreoffice5.4 come as
libreoffice5: /usr/bin/libreoffice5.4
But when check Pimcore then it showing not installed, In similar way I install cjpeg as given in https://www.pimcore.org/docs/5.0.0/Installation_and_Upgrade/System_Setup_and_Hosting/Additional_Tools_Installation.html and when do whereis cjpeg then it gives output
cjpeg: /usr/bin/cjpeg /usr/local/bin/cjpeg /opt/libmozjpeg/bin/cjpeg /usr/share/man/man1/cjpeg.1.gz
But still Pimcore showing it not installed.
What and where I am missing?
Have a look at app\config\parameters.yml and add the paths to the cjpeg and soffice executables there. If that file doesn't exists make a copy of parameters.example.yml.

Linker error from homebrew installing php when running make

I'm attempting to install php and php-cgi with Homebrew.
brew install https://github.com/ampt/homebrew/raw/php/Library/Formula/php.rb
Using this method returns the following errors.
==> make
clang: clangerror: : linker command failed with exit code 1 (use -v to see invocation)error:
linker command failed with exit code 1 (use -v to see invocation)
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
make: *** [sapi/cgi/php-cgi] Error 1
I've updated Homebrew, and the XCode command line tools. The only warning brew doctor gives me is that a few Python "config" scripts exist outside my system or Homebrew directories.
Anyone know what the issue could be? Where can I look for more detailed error messages?
I'm not familiar with the ampt tap, when I grabbed php I used the josegonzalez tap. You could try that.
$ brew tap josegonzalez/homebrew-php
You can also get more information by using the -vd options to brew install.
$ brew install -vd https://github.com/ampt/homebrew/raw/php/Library/Formula/php.rb
I just unlinked my 5.3.13 php from josegonzalez and ran the above command. With the -vd I can see the ./configure command run and all the output from it as well as the commands make invokes and compiler output. Whew, this is taking a while to build.
It does fail for me with this output
==> cp ./php.ini-production /usr/local/Cellar/php/5.3.10/etc/php.ini
cp ./php.ini-production /usr/local/Cellar/php/5.3.10/etc/php.ini
cp: /usr/local/Cellar/php/5.3.10/etc/php.ini: No such file or directory
/usr/local/Library/Homebrew/formula.rb:553:in `system
Looks like the Formula never creates ${prefix}/etc. I blame the formula. Try josegonzalez tap.
$ rm /Library/Caches/Homebrew/Formula/php.rb
$ brew tap jozegonzalez/homebrew-php
$ brew install php53
As a comment on homebrew-php repository just force link libxml2
brew link libxml2 --force

Categories