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 am using rails 4 with database as postgres9.4.While using hstore type column for dynamic field .I am getting error
PG::UndefinedFile: ERROR: could not open extension control file
"/usr/pgsql-9.4/share/extension/hstore.control": No such file or
directory : CREATE EXTENSION IF NOT EXISTS
"hstore"/var/www/Q3/mailchimp/campaign_app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in async_exec'
/var/www/Q3/mailchimp/campaign_app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:inblock in exec_no_cache'
/var/www/Q3/mailchimp/campaign_app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:473:in block in log'
/var/www/Q3/mailchimp/campaign_app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in
instrument'
/var/www/Q3/mailchimp/campaign_app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:467:in log'
/var/www/Q3/mailchimp/campaign_app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:inexec_no_cache'
/var/www/Q3/mailchimp/campaign_app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:584:in execute_and_clear'
/var/www/Q3/mailchimp/campaign_app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in
exec_query'
/var/www/Q3/mailchimp/campaign_app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:342:in enable_extension'
/var/www/Q3/mailchimp/campaign_app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:662:in
block in method_missing'
I try
sudo yum install postgresql postgresql-contrib
sudo yum install postgresql-server.x86_64 postgresql94-contrib.x86_64
but don't work for me
In Centos i by mistake install postgres8.3 packages but i was using postges9.4.
After removing postgres8.3 packages it works fine
Related
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 8 years ago.
Improve this question
I have a web application which works on ruby on rails 3.2.x under ubuntu 12.04.
During automation of the setup I run install.sh bash file which has bundle install command as below.
cd /var/www/myapp
bundle install
bundle update
i am automating the setup as to update the latest code from repo. The updated code is available in my repo every 8 hours. Manual setup an setting up test environment is quite tiresome.
Is there anything which I might be missing.
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 8 years ago.
Improve this question
I am trying to make changes to my pg_hba.conf file. I cd /etc/postgresql/9.1/main
$ sudo gedit pg_hba.conf
make my changes, but then the directory looks like this:
$ ls
environment pg_hba.conf~ start.conf
pg_ctl.conf pg_ident.conf
pg_hba.conf postgresql.conf
What way can I edit pg_hba.conf without this double file business? If I don't run sudo I get an error in gedit that I don't have permissions necessary to open the file
Those files ending with a ~ (tilde) are backup files. Gedit creates them, you can switch that off in the gedit preferences under File saving.
Or you can use an editor that does not leave those files around, like nano.
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've been trying to get zipruby installed on my windoz box, but there has been little joy.
I'm confronted with this message.
Installing zipruby (0.3.6) with native extensions C:/RailsInstaller/Ruby1.9.2/li
b/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_ex
tensions': ERROR: Failed to build gem native extension. (Gem::Installer::Extensi
onBuildError)
I would normally google things, and have in this case, but I see no answer. There seems to be nothing really on the topic of native extensions with respect to ruby. Not at least that I've found, though I'd love to be wrong.
Has anyone installed this gem on a windows box?
If you encountered the issue, how did you get past it/fix it?
Thanks.
<-- I am editing this answer as I work through.. if I eventually crack it, I'll have a log anyone can find... including me -->
Steps I tried that (as yet) didn't work
download zlib-1.2.3-src.exe and run the install.
After the install (where I changed nothing) run the gem install.
w:\ruby> gem install zipruby -- --with-opt-dir="C:\Program Files\GnuWin32\src\zlib\1.2.3\zlib-1.2.3"
The above didn't work, and I seem no closer
Steps that seem to leading somewhere.. But ultimately let me down
Installed two files. http://rubyforge.org/frs/download.php/75848/rubyinstaller-1.9.3-p125.exe and https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe I'm still working my way through the install, but I'll keep this answer fluid.
Where I'm at now.. Just where I started.
There are gem files for Windows available for download from RubyForge, they work with my Ruby 1.9.2 installation on Windows 7
gem install path.to\downloaded.gemfile
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
Where can I find rails standalone installer package for the rails v.3.x.x?
I know I can use gem command and specify a particular version to download.
Is that available to download on some website like rubyforge?
Thanks in advance,
If you're using windows, you can use RailsInstaller
git clone git://github.com/rails/rails.git
git checkout v3.1.1
List all versions:
git tag -l
https://github.com/rails/rails
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
Is there a way to run phantomjs, a command-line tool, on Heroku?
check out this buildpack:
https://github.com/stomita/heroku-buildpack-phantomjs
I also am able to run the x86_64 build of PhamtomJS, just stuck in my app's vendor directory:
http://phantomjs.org/download.html
In Version 1.5 we got rid of the Xvfb and Xlib dependencies.
Now this should be pretty simple.
I'd suggest:
checkout the source
build a binary with the given script (check the options to build the version without xvfb)
be happy :)
Ariya, the main author, also did a good job at incorporating Qt in our codebase directly, so we have a tailored, stripped down Qt that does just what PhantomJS needs and no more :)
I'm not familiar with Phantom, but it looks like a binary, in which case there's a Heroku buildpack which might help you out here:
https://github.com/ryandotsmith/null-buildpack