problem when installing rails plugins - ruby-on-rails-plugins

I'm trying to install acts_as_tree plugin, i got no error from the command line but i still get :
undefined local variable or methodacts_as_tree' for #`
the vendor/acts_as_tree is empty and when i try install again i get :
already installed: acts_as_tree (git://github.com/rails/acts_as_tree.git)
i'm running rails 2.3.5 on windows with aptana 2 and instantrails

I was missing Git

Related

Installing phpw55-mcrypt on RedHat enterprise 5

Thank you in advance for reading this question,
I am trying to run a Laravel web application on an old RedHat server that is provided by my company. I am getting the error that MCRYPT is not active (it is not installed). When trying to run a yum install php55w-mcrypt yum gives the error
--> Finished Dependency Resolution
php55w-mcrypt-5.5.26-1.w5.x86_64 from webtatic-el5 has depsolv
--> Missing Dependency: libltdl.so.3()(64bit) is needed by p
pt-5.5.26-1.w5.x86_64 (webtatic-el5)
Error: Missing Dependency: libltdl.so.3()(64bit) is needed by
ypt-5.5.26-1.w5.x86_64 (webtatic-el5)
You could try using --skip-broken to work around the problem
I have tried installing the dependency, but I can not seem to find the libltdl.so.
Does anyone know if there is a workaround / does anyone know where to find the library?
Many thanks
I found the required libtools here:
http://rpmfind.net/linux/rpm2html/search.php?query=libtool
wget < correct file type for your server >
yum install lib*
rm lib*
Then searched on the same webpage for libltdl.so.3()
wget < correct file type for your server >
yum install lib*
After installing the dependencies the yum install php55w-mcrypt could be installed and laravel worked like a charm!

The MongoDB PECL extension has not been installed or enabled [duplicate]

I am using Ubuntu 12.04 LTS and installed pecl in /opt/lampp/bin/ .
When installing second time its throwing error -
Command run previously -
pecl install mongo
pecl/mongo is already installed and is the same as the released
version 1.5.1 install failed
Now when I am Checking by -
echo extension_loaded("mongo") ? "loaded\n" : "not loaded\n";
It is showing not Loaded.
However I updated the php.ini with extension=mongo.so and restarted the server, but its not working.
Let me now what I am doing wrong.
EDIT
I re instantiated the command and following is the outcome -
Build process completed successfully
Installing '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/mongo.so'
install ok: channel://pecl.php.net/mongo-1.5.1
configuration option "php_ini" is not set to php.ini location
You should add "extension=mongo.so" to php.ini
Finally with the help of Neil Lunn I made it the right way.
I added the full path and added the code at the very last line of my php.ini
extension="/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/mongo.so"
I got the solution for xampp in ubntu linux.
If this command not work for you pecl install mongo
you should type below command
sudo /opt/lampp/bin/pecl install mongo

Vagrant cannot install nokogiri-dependent plugins

I'm trying to install the rackspace plugin for vagrant (1.5.1):
vagrant plugin install vagrant-rackspace
But it complains
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
An error occurred while installing nokogiri (1.6.1), and Bundler
cannot continue. Make sure that gem install nokogiri -v '1.6.1'
succeeds before bundling.
However gem install nokogiri -v '1.6.1' and /Applications/Vagrant/embedded/bin/gem install nokogiri -v '1.6.1' both work.
I've looked at a bunch of SO threads and blog posts. Things I've tried that have not worked
Running xcode-select --install
Installing full xcode
brew install gcc-4.2
Remove rvm and rvm version of ruby
Install nokogiri w/ built-in (mac) ruby and vagrant-embedded ruby
Despite the fact that nokogiri installs fine (#5 above) without sudo on both counts, vagrant plugin install vagrant-rackspace still fails...
So, in summary, I can install the nokogiri plugin, however I cannot install the vagrant rackspace plugin, can you help me get the plugin installed?
Related threads
Error to install Nokogiri on OSX 10.9 Maverick?
nokogiri - ERROR: Failed to build gem native extension
Full output of vagrant plugin install vagrant-rackspace --debug
I'm on OSX Mavericks and this worked for me:
Set as environment property:
NOKOGIRI_USE_SYSTEM_LIBRARIES=1
Then install as usual:
vagrant plugin install vagrant-rackspace
Vagrant ships with embedded Ruby and isolated gem environment. So installing gems manually to your "normal" gem environment won't help.
The first issue is that you should never use sudo to run any vagrant command. If possible, please remove ~/.vagrant.d/ or at least chown it recursively back to your own user. You could also try upgrading Vagrant to v1.5.1.
Then please gist/pastebin the output of vagrant plugin install vagrant-rackspace --debug and ~/.vagrant.d/gems/gems/nokogiri-1.6.1/ext/nokogiri/mkmf.log.
The posted solutions didn't work for me. Instead I needed to specify the libxml2, libxslt and libiconv that I installed with homebrew (Do this first).
I installed the gem manually with the embedded ruby with the following [very concise] command line:
/Applications/Vagrant/embedded/bin/gem install \ # select the embedded ruby
--install-dir ~/.vagrant.d/gems \ # install to the vagrant dir
nokogiri -v '1.6.2.1' -- \ # pass options to nokogiri install
--with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 \
--with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib \
--with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 \
--with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include \
--with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib
This worked for me on Mavericks and Vagrant 1.6.1:
CC=/usr/bin/gcc vagrant plugin install vagrant-rackspace
I tried NOKOGIRI_USE_SYSTEM_LIBRARIES=1 but got an error saying that system libxml2 is too old.
Warning: This is a super-hacky solution, though it's hard to call it that.
Yesterday I installed Vagrant on another OSX Mavericks box. Like many other posts I read on SO "all I had to do" was run xcode-select --install and bingo vagrant plugin install vagrant-rackspace worked like a charm.
Today I was mired down in the Bundler code again when it dawned on me that since this is an isolated ruby environment why not nuke my ~/.vagrant.d directory and copy the same directory from the successful build on the other box...
The result? A working vagrant rackspace on my laptop! I'm not sure I'll ever figure out what was really wrong, but if anyone wants a shot at the 100 point bounty, I'm still open to suggestions!
In my case the nokogiri folders and their files located in ~/vagrant.d/gems/gems had wrong rights (user/group).
After changing them to username:staff (username being your console user name), it works like a charm.
Similarly with my case, I have an issue while installing vagrant-omnibus plugin for Vagrant 1.6.3 on OSX Mavericks 10.9.4 and ruby 2.0.0p247 rbenv.
I tried setting the env NOKOGIRI_USE_SYSTEM_LIBRARIES to 1 or true, then update+install but the same error still there.
I found that there is a suggestion in https://github.com/mitchellh/vagrant/issues/3769 to use the specify the baked in nokogiri version and this works for me. So, I also wrote a quick noted for myself to refer this unfortunates issue.
If Nate Murray's solution doesn't work, I found upgrading to a Vagrant version > 1.6.4 fixed the issue (as noted in this Github issue: https://github.com/mitchellh/vagrant/issues/3769)
in my case while trying to install vagrant-parallels, i had to check the Command line tools folder had an error in the naming for some reason. Fixing that allowed nokigiri to work well

Can't run checksetup.pl for BugZilla requires ppm install DBI

I'm following the installation guide for BugZilla at https://wiki.mozilla.org/Bugzilla:Win32Install.
I'm trying to install BugZilla on my Windows 2008 server. I've installed Perl 4.17, Apache for windows 2.2.25 and BugZilla 4.4.1. I'm at the point of running the command
C:\bugzilla>perl checksetup.pl
But when I run this command I get
I've then tried to install the package using
ppm install DBI
but I get the message saying "No missing packages to install"
Where am I going wrong ?
For me the main issue was that it thinks 1.614 is more than 1.63
In the console output, in red:
Checking for DBI (v1.614) found v1.63
I changed Requirements.pm by requiring 1.63 for the said module. Thanks #Tommo1977
I managed a work around by commenting out the version check. It appears that this is a bug
https://bugzilla.mozilla.org/show_bug.cgi?id=938300
Just had this problem on Windows Server 2012 using Bugzilla 4.4.1 and ActivePerl 5.16.3.1603.
Solved by removing one of the two DBI packages using ppm UI. Just type 'ppm' in command line and then remove one DBI package.
The version checking for DBI can be commented out in C:\Bugzilla\Bugzilla\Install\Requirements.pm
#{
# package => 'DBI',
# module => 'DBI',
# version => (vers_cmp($perl_ver, '5.13.3') > -1) ? '1.614' : '1.41'
#},

PHP :mbstring module install

I have tried to install the mbstring module for PHP. I have entered the below commands:
yum install php-mbstring
/usr/local/apache/bin/apachectl restart
Module is now installed but the errors has not dissapeared.
Fatal error: Call to undefined function mb_send_mail()
In my phpinfo(), "mbstring" doesn't exist...
OS: centos 6
PHP: 5.3.8
How did you install PHP on your system? The PHP version currently supported via YUM install is 5.3.3, but you said your PHP version is 5.3.8 which leads me to believe that you may have compiled PHP manually. If so, you will have to recompile with the --enable-mbstring flag.