Upgrade maven.2.0.8 to maven.2.0.9 on Ubuntu Hardy Heron (8.04) - maven-2

Ubuntu packages for 8.04 only goes upto version 2.0.8 of Maven. How do I install maven 2.0.9 package using apt-get or other Ubuntu package installer ? Thanks.

Try to download and install a .deb from the "maven2" package. Not sure this will work though.
But actually, my advice would be to install Maven manually (download the distribution, extract it, add $M2_HOME/bin to the $PATH and there you go).

Related

How install Intl, GMP and BCMath PHP extensions?

Centos 6.8 Final
Php 7.0.16
Directadmin control panel
yum install php-gmp
yum install php-bcmath
yum install php-intl
result is: No package xxx available.
Thank you.
BCmath is already preinstalled with PHP. http://php.net/manual/en/bc.requirements.php
For other libs try to define repository where yum would search artifacts and then install the extension. For example,
yum --enablerepo=remi install php-intl
Another alter way is described there https://webtatic.com/packages/php70/
Take a look at the php70w-common package which includes gmp, and further just install php70w-bcmath and php70w-intl. Don't forget to enable all packages inside php.ini.

Install old version of phantomjs

I want to install an old version of phantomjs (1.9.1). If I run
brew install phantomjs
It installs the new version (2.0.0).
You can find supported prior versions in the homebrew-versions repository. There isn't a formula for 1.9.1 but you can install 1.9.2 with brew install homebrew/versions/phantomjs192. (You could contribute one for 1.9.1 if you really need it.) You can look for versioned formulas with brew search phantomjs.
Please, try this command:
brew install https://raw.githubusercontent.com/Homebrew/homebrew-versions/master/phantomjs182.rb

How can I build an RPM package in a Debian based system?

I'd like to build packages using a build system (i.e. jenkins, travis, etc) but all I have are Ubuntu 12.04 VMs.
I've found this [1] instructions but mach does not support CentOS 7.0.
[1] http://blog.burghardt.pl/2008/12/how-to-build-rpm-packages-in-centos-chroot-on-debian/
http://mojo.codehaus.org/rpm-maven-plugin/ <- rpm plugin for the maven build system
sudo apt-get install rpm # for Ubuntu
Check out the command that it installs called rpmbuild.
Found it! There is actually a tool called rinse: "Rinse is a simple tool which is designed to carry out the installation of a new RPM-based distribution".
rinse --distribution="centos-7" --directory="/tmp/centos-7"
http://collab-maint.alioth.debian.org/rinse/

IntelliJ IDEA 12: How can I run pip install to install libraries in virtual environment?

I am using IntelliJ IDEA 12 Ultimate Edition and creating flask project.
I created the virtualenv using IDEA and using that, but my code has dependency on other libraires I as move forward. For example Flask-Restless.
My code in IntelliJ IDEA looks like
Is there a way to install Flak-Restless using IntelliJ IDEA 12?
or
do I need to activate my virtualenv on command-line and install it myself?
Is it something IDEA can provide to me?
In IntelliJ IDEA use Tools | Manage Python Packages dialog to install/uninstall packages for your Python SDK or virtualenv used in project.
Use pip requirements.txt in your repository root. My PyCharm automatically prompt me install absent requirements or if installed versions not equal with requirements.txt.
You can install packages from requirements.txt:
your_python_root_pip install -r requirements.txt
You can get already installed packages with versions:
your_python_root_pip freeze -r requirements.txt
For details see pip help. See requirements.txt example:
flask==0.9
flask-testing==0.4
blinker==1.2
uwsgi==1.4.5
nose
coverage
pep8
You can install all project packages via PyCharm 2017.1 by Tools / Python Integrated Tools / Package requirements file. Get there full path to your requirements.txt file and PyCharm will ask you to install all dependencies.

Installing gdal-config on my linux

I search the entire net could not find a guide to get gdal-config.
I have yum but yum does not have gdal-config, i already installed gdal.
I just need to be able to do this on shell - gdal-config and not get a command not found error.
My distro is Fedora. I don't have apt-get.
You probaby have "yum" instead of "apt-get" on Fedora. Try..
yum install gdal gdal-devel
I'm running Ubuntu 16.04, so I use apt-get instead of Yum. But I had trouble with gdal and gdal-develop. This is command that worked for me:
sudo apt-get install gdal-bin libgdal-dev
I found the package names from here:
https://launchpad.net/ubuntu/+source/gdal
I had a similar problem, that is "gdal-config" was missing. I could solve it by installing the development packages. So you could try installing gdal-dev.
As far as I know, the GDAL utilities, including gdal-config, are part of the download package that you can find here: http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries. They link to a Fedora version. If you installed apt-get, you could find it by looking for GDAL directly.