How do I find which rpm package supplies a file I’m looking for?

As an example, I am looking for a mod_files.sh file which presumably would come with the php-devel package. I guessed that yum would install the mod_files.sh file with the php-devel x86_64 5.1.6-23.2.el5_3 package, but the file appears to not to be installed on my filesystem. How do I find out which package installs a specific … Read more

pip install – locale.Error: unsupported locale setting

Full stacktrace: ➜ ~ pip install virtualenv Traceback (most recent call last): File “/usr/bin/pip”, line 11, in <module> sys.exit(main()) File “/usr/lib/python3.4/site-packages/pip/__init__.py”, line 215, in main locale.setlocale(locale.LC_ALL, ”) File “/usr/lib64/python3.4/locale.py”, line 592, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting On the same server, I successfully ran pip install virtualenv with python 2.7.x. Now, I’ve … Read more

How to use a different version of python during NPM install?

I have terminal access to a VPS running centos 5.9 and default python 2.4.3 installed. I also installed python 2.7.3 via these commands: (I used make altinstall instead of make install) wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz tar -xf Python-2.7.3.tgz cd Python-2.7.3 ./configure make make altinstall then I installed node.js from source via these commands: python2.7 ./configure make make … Read more