Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
So I'm trying to get Tidy2.0 installed on my Karmic, following this guide:
http://www.howtoforge.com/forums/archive/index.php/t-7395.html
I figured everything would work, but it seems the source for Tidy2.0 is no longer live:
http://support.office-shadow.com/installer/tidy2.0.tar.gz
That site is still live though (office-shadow.com, namely), but it doesn't seem like they're hosting the extension anymore. Thus, I'm hoping someone here has it sitting somewhere on a box. Please? Help?
Thanks.
sudo aptitude install php5-dev libtidy-dev
#you may have to install other libs, like gcc, build-essential, etc.
#see the guides on how to compile PHP, for instance
svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3/ext/tidy/
cd tidy
phpize
./configure
make
sudo make install
Basically, I just replaced http://support.office-shadow.com/installer/tidy2.0.tar.gz with the repository location. If you're using PHP 5.2, replace PHP_5_3 with PHP_5_2.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm using the symfony2 framework,
and I need to run "php app/console" commands frequently,
however when I run "php app/console"
it says
The program 'php' is currently not installed. You can install it by
typing:
sudo apt-get install php5-cli
this is working though
/usr/local/php7/bin/php app/console
how can I make 'php' out of '/usr/local/php7/bin/php' for the command line? I'm on linux Mint/Ubuntu
you can put "/usr/local/php7/bin/" to $PATH or use shell alias command with writing following line to console:
alias php=/usr/local/php7/bin/php
after that you can use "php app/console"
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to install the capybara gem on OS X. The issue is I am running MAMP, and do not wish to run rails due to potential conflicts. How can i install a gem? Where would a Gemfile even be without a application folder?
I don't know what kind of conflicts you expect from running Rails app and MAMP.
But if you have ruby install on your mac then you simply can install gem with:
gem install capybara
Although I can't understand how would you use it out of rails app environment.
RVM will be definitely better.
After you will install RVM run this:
rvm use 2.2.0#my_gemset --create
gem install capybara
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Improve this question
I installed php using sudo apt-get install php on Debian Wheezy. This installed Apache, and I created a file named /var/www/index.php.
However, when I opened in the browser localhost/index.php, the file showed as plain text. What's interesting is, I had tried the same thing on Ubuntu, and it worked there out of the box, so there's some difference between Debian and Ubuntu here.
It appears that you need to restart apache after installing it on Debian. So when installing php, you do this:
sudo apt-get install php5
sudo /etc/init.d/apache2 restart
After that your PHP files will work fine.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Back in November I installed my own PHP setup, for version 5.4.9. I thought I had removed it, but apparently not. In December I reinstalled it with yum install php54, and all its packages.
Now I have a problem where CLI seems to be using the custom PHP install, and the main site is using the yum install. I want both the CLI and the site to use the yum install, which is now 5.4.10.
When I do php -v in the CLI, it shows 5.4.9, so I do know it is using the wrong PHP install. This is causing a lot of issues because the custom install didn't have mysqli installed with it, and it had ftp disabled.
Does anyone know how I can remove the custom install and relink the CLI to the new yum install?
I am using CentOS.
How did you install the "custom" one? This is a very broad question, but here's some general advice:
Where is it installed? which php can tell you. You can use this to figure out how to uninstall it. For instance, it could be in /usr/local or /opt.
Then, edit your $PATH variable to put the place where the PHP you want is before the one you don't want. This will make the PHP you want run first, at least.
If you compliled the custom PHP, you might be able to remove it with something like make uninstall.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm trying to install wkhtmltopdf on my debian linux server so I will be able to test if it creates a pdf from a url.
I've downloaded wkhtmltopdf-0.9.9-static-i386.tar.bz2 and extracted it's contents to a directory.
When I try to test if it's working, I came across the next error:
/usr/local/bin# wkhtmltopdf http://google.com google.pdf
wkhtmltopdf: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
I'm trying to install https://github.com/KnpLabs/KnpSnappyBundle on my symfony2 and I think I need to install wkhtmltopdf on my linux first. Am I right?
It took me a few hours to solve this one, but you need to install libfontconfig1 also e.g.:
apt-get install libfontconfig1