I'm new to Zend Framework 2.0, after reading the documentation I know that we can install phpUnit via Pear or via composer ?
Please explain to me some differences between them, thank you
Use Composer. The main difference is that Composer installs phpunit within your application, whereas pear installs it on the server. The advantage of the composer approach is that you can have different versions of phpunit used by different applications.
Related
I'm working in an Erlang environment. I'm looking to establish a dependency manager so that our build server can publish binaries for reuse instead of using source code dependencies. The Hexpm GitHub project implies that it is possible to run it outside of the hex.pm website, but I don't see any instructions for doing so. Specifically, I would like my build server to be able to publish packages either directly (via the filesystem) or via rebar3, and for subsequent rebar3 builds to be able to use those published packages
Is it possible to run Hex on my own server?
If so, where would I find some documentation on how to set it up (or provide the instructions directly)?
If you look at https://github.com/hexpm/hex_web there are instructions in the README.md for both installing and running it. It's a phoenix application, so it should all be relatively familiar ground if you've looked at the phoenix framework before.
As for getting rebar3 to work with your installation, there is documentation here as to the config values to use for setting the URLs to use for hex packages: http://www.rebar3.org/docs/hex-package-management.
HTH.
In order to ease the installation process of RabbitMQ, I want to use a simple, zero dependencies installer for erlang.
There is a great project on Github from the guys at RabbitMQ - erlang-rpm, but this is RPM only.
I'm aware of erlang-solutions, but it not a single, no dependencies installer.
EDIT: Adding some context here. I need this to be able to prepare a simple, offline install to my app, which needs RabbitMQ. Offline means NO access to internet for downloading dependencies.
Any ideas?
There is no Zero-dependency Erlang Ubuntu/Debian for RabbitMQ.
But the Erlang Solution package can be installed easily.
We built the Centos package because the dependencies are hard to install on Centos (if you don't want to use the epel)
If you want to create an offline setup, you can do it like for other packages (https://askubuntu.com/questions/974/how-can-i-install-software-or-packages-without-internet-offline). Or you can create your own package by building Erlang from source code.
Note also RabbitMQ has dependencies as socat
I have Grails project in which I have added elastic search dependencies.
Now I want to install head plugin .
According to documentation of head plugin, command for this is:
elasticsearch/bin/plugin -install mobz/elasticsearch-head
But I am not able to find bin directory of ES.
So where is the elasticsearch installed in Grails ?
Do :
cd /usr/share
and
elasticsearch/bin/plugin -install mobz/elasticsearch-head
You have a Car with Satellite radio in it. If there is a request to add a new channel to the satellite radio service, then that has to be done in the broadcasting station instead of installing any kind of component/tool in your Car. :)
Similarly, When you say you added elastic search dependencies to a Grails project that does not mean you have a elastic server running in the same application.
The documentation for head plugin (here plugin means an add-on to elastic server, instead of a Grails plugin) refers to elastic server (where you can find a bin directory).
Your best approach would be Running as a standalone webapp if you have elastic server running in your localhost during development. Or run it as a plugin to elastic server installation wherever it is installed. I hope I was able to convey. :)
Do:
cd /usr/share
and
elasticsearch/bin/plugin install mobz/elasticsearch-head
I'm new to Zend Framework 2.0, after reading the documentation I know that we can install Zend via some package managers as Pyrus, Composer. But I don't know which package manager should I choose? Please explain to me some differences between them, thank you for help!
Pyrus is basically PEAR2, and needs the end developer of a package to configure a pyrus distribution channel to make packages public.
Composer is backed by the main packagist.org repository, with the availability of own channels through satis if necessary.
Pyrus is mantained, but has not much activity on its main repository, composer is much more active.
Composer is the most used package manager for PHP currently available. Most ZF2 modules currently support it and don't support Pyrus, so I strongly suggest you to get used to it.
Related: ZF2 + doctrine without composer (an example of how this tool is becoming necessary).
In addition to Ocramius' explanation:
Pyrus is not PEAR2. Pyrus is a standalone tool that can install packages from any PEAR-compatible channel, including pear.php.net and pear2.php.net.
Pyrus is able to install and compile PECL packages (PHP extensions).
Publishing a package yourself is easier with composer. You only need one single file in your git repository; Composer can install directly from there. Pyrus on the other hand needs a bunch of XML files you can't hand-generate - so you have to use a channel server software like Pirum.
I'm trying to get Erlang working on my Fedora server, specifically to run rabbitmq, but when I yum install erlang yum complains that wxGTK requires a bunch of packages.
Wtf? Why is erlang trying to install a GUI? I intend to deploy this on a headless server.
Do I need to compile erlang from source? Is there no GUI-less version of erlang I can use?
I like to use the kurl script created by the folk at Basho to install Erlang. It works very well on ubuntu. I hope this will be ok on Fedora too.
This will actually automatically download the source code, and compile it. If you dont have Wx installed, it will not compile this library and will work perfectly without (as long as you dont use tools which need it, of course)
I guess by default your erlang installation has wxErlang enabled and so those packages are required for installation.
On https://github.com/erlang/otp/wiki/Installation you can find instructions on how to manually install Erlang/OTP.
In the configure part you can disable the wxErlang part. Usually no extra config is required since the wxErlang-support will be disabled by default when the required packages are not installed.