Chef install of readline package fails on Ubuntu 14.04 - postgresql

I am trying get PostgreSQL (server) installed on an Ubuntu node using Chef:
Role definition (roles/base_server.rb):
run_list(
"recipe[apt]",
"recipe[postgres::server]"
)
default_attributes(
postgresql: {
version: "9.3.4",
config: {
shared_buffers_mb: "12000"
}
}
Setup
System: Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)
Chef-Version: 11.14.6
Postgres Cookbook: [3.4.1] (https://github.com/hw-cookbooks/postgresql)
Running the bootstrap command
knife bootstrap IPADDRESS -x USER -r 'role[base_server]' --sudo
Results in the following error:
* package[readline] action install
* No version specified, and no candidate version available for readline
================================================================================
Error executing action `install` on resource 'package[readline]'
================================================================================
Chef::Exceptions::Package
-------------------------
No version specified, and no candidate version available for readline
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/postgres/recipes/build.rb
29: package package_name do
30: action :install
31: end
32: end
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/postgres/recipes/build.rb:29:in `block in from_file'
package("readline") do
action [:install]
retries 0
retry_delay 2
guard_interpreter :default
package_name "readline"
timeout 900
cookbook_name "postgres"
recipe_name "build"
end
I already tried to fix this by installing the readline libraries manually, but no success. Has anyone an idea how to solve this?

As mentioned by StephenKing, the issue isn't with Chef, it is that the package really doesn't exist. You'll need to fix your recipe code to use the correct package name.

Related

Unable to Install Packages on RCloud

I am unable to install packages and have tried installing packages through devtools with no success. Seems I can not create a library to hold installed packages. Our we allowed to install packages on RCloud? or is there no space for us to install packages to begin with? I get the following errors:
#1ERROR: failed to create lock directory /shared/users/rcloud/danielra0091/library/00LOCK-digest’
#2ERROR: unable to create ‘/shared/users/rcloud/danielra0091/library/rbenchmark’
```
library(devtools)
install_github("HenrikBengtsson/future")
Results:
Downloading GitHub repo HenrikBengtsson/future#master
from URL https://api.github.com/repos/HenrikBengtsson/future/zipball/master
Installing future
trying URL 'http://cran.r-project.org/src/contrib/digest_0.6.18.tar.gz'
Content type 'application/x-gzip' length 128553 bytes (125 KB)
==================================================
downloaded 125 KB
Installing digest
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet \
CMD INSTALL '/tmp/RtmprSADLu-danielra0091/devtools22293a652eab/digest' \
--library='/shared/users/rcloud/danielra0091/library' --install-tests
Error: Command failed (3)
trace:
FUN(X[[i]], ...)
vapply(remotes, install_remote, ..., FUN.VALUE = logical(1))
install_remotes(remotes, quiet = quiet, ...)
install_github("HenrikBengtsson/future")
-------------------------------------------------------------------------
install.packages("Rcpp", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
Results:
The downloaded source packages are in
‘/tmp/RtmprSADLu-danielra0091/downloaded_packages’
In addition: Warning messages:
1: In install.packages("Rcpp", dependencies = TRUE, INSTALL_opts = c("--no-lock")) :
installation of package ‘inline’ had non-zero exit status
2: In install.packages("Rcpp", dependencies = TRUE, INSTALL_opts = c("--no-lock")) :
installation of package ‘rbenchmark’ had non-zero exit status
3: In install.packages("Rcpp", dependencies = TRUE, INSTALL_opts = c("--no-lock")) :
installation of package ‘pinp’ had non-zero exit status
4: In install.packages("Rcpp", dependencies = TRUE, INSTALL_opts = c("--no-lock")) :
installation of package ‘pkgKitten’ had non-zero exit status
5: In install.packages("Rcpp", dependencies = TRUE, INSTALL_opts = c("--no-lock")) :
installation of package ‘Rcpp’ had non-zero exit status
```
FYI, if you install packages yourself, they will be installed in your personal library. You may also request package installation from your server admins which will be installed for everyone in the RCloud instance.
One issue you may be running into with your local (or personal library) installation is that you need to set up a proxy to get outside your firewall to the installation libraries / packages in public domains.
Another may be due to the R and RCloud version that is currently installed. If you think that might be the case, I would contact your RCloud admins.

Error installing egit plugin on eclipse neon using hiera

I am trying to install egit plugin on eclipse neon which is installed in my puppet agent by using puppet module concept.
But when I am trying to install plugin it showing error as follows
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list eclipse-platform'
returned 1: Error: No matching Packages to list Error:
/Stage[main]/Eclipse::Install::Package/Package[eclipse-platform]/ensure:
change from absent to present failed: Execution of '/usr/bin/yum -d 0
-e 0 -y list eclipse-platform' returned 1: Error: No matching Packages to list
my hiera data file is
---
eclipse::plugin::egit:
-
eclipse::plugin::egit: true
eclipse::plugin::egit::enable: true
my manifest is as follows
node p01vm2 {
eclipse::plugin::install::p2_director { 'org.eclipse.egit.feature.group': }
class {'eclipse::params':}
}
please help me to solve this problem.

(Raspberry Pi)Exagear: Installing wget on Guest System

I'm trying to install wget on my Raspberry Pi running Debian 8 on Exagear Desktop as a Guest System. When I try to install wget, it just gives me this as an Output:
root#RaspiServer:~# sudo apt-get install wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libicu52 libpsl0
The following NEW packages will be installed:
libicu52 libpsl0 wget
0 upgraded, 3 newly installed, 0 to remove and 28 not upgraded.
1 not fully installed or removed.
Need to get 0 B/7435 kB of archives.
After this operation, 30.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
debconf: delaying package configuration, since apt-utils is not installed
Setting up udev (215-17+deb8u4) ...
addgroup: The group `input' already exists as a system group. Exiting.
invoke-rc.d: You are trying to invoke service *udev* of the host system from the guest one.
This action is prohibited; please refer to the user guide for more details.
dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
udev
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'd really appreciate any help.
Thanks.
Try to install new version of ExaGear Desktop 1.5. There problem with udev is fixed.

trouble installing MozRepl

I've been trying to install WWW::Mechanize::Firefox through CPAN and I am having trouble installing the dependency MozRepl. The installation goes through but the tests all fail, and when I force install it and run my perl script, I run into an error
Failed to connect to , at /Library/Perl/5.12/MozRepl/RemoteObject.pm line 467.
SO I uninstalled MozRepl and looked at the tests I get the following errors in the log:
# Failed test at t/10-plugin-repl-enter.t line 11.
Can't locate object method "repl_enter" via package "MozRepl" at t/10-plugin-repl-enter.t line 12.
...
# Failed test at t/20-plugin-json.t line 16.
Can't locate object method "json" via package "MozRepl" at t/20-plugin-json.t line 17.
# Failed test at t/19-plugin-repl-util-doc_for.t line 14.
Can't locate object method "repl_doc_for" via package "MozRepl" at t/19-plugin-repl-util-doc_for.t line 16.
# Failed test at t/18-plugin-repl-util-help_url_for.t line 14.
Can't locate object method "repl_help_url" via package "MozRepl" at t/18-plugin-repl-util-help_url_for.t line 16.
etc..
I am running on Mac OSX 10.8.4, 4 GB Ram 2.5 Ghz, Perl version 5.12. Does anybody have any idea what is causing these errors?
UPDATE:
i reinstalled mozrepl, and now I get this error when i run my script:
Failed to connect to , problem connecting to "localhost", port 4242: Connection refused at /Users/thui/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0/MozRepl/Client.pm line 144
This works for me with perl 5.10 or later, latest Firefox (26 as of writing) and Mozrepl from github.
At command propmpt:
(1) Download MozRepl and build the XPI file (Firefox extension):
git clone git://github.com/bard/mozrepl
cd mozrepl
zip -r ../mozrepl.zip *
cd ..
mv mozrepl.zip mozrepl.xpi
(2) Install the extension in Firefox via about:addons [Install from file].
In Firefox:
(3) Menu->Tools->Mozrepl->Activate On Startup
(4) Menu->Tools->Mozrepl->Start
At command propmpt:
(5) which firefox
Make sure the firefox executable (or your OS's wrapper script) is in $PATH - you should get some output!
(6) cpanm WWW::Mechanize::Firefox
(7) Test it!
At this point, if CPANminus reports no errors then WWW::Mechanize::Firefox should be working. The first example from the synopsis is a good test:
#!/usr/bin/perl
use WWW::Mechanize::Firefox;
my $mech = WWW::Mechanize::Firefox->new();
$mech->get('http://google.com');
That assumes MozRepl is listening on port 4242 (check in Menu->Tools->Mozrepl->Change Port). You can also change the port from the perl side; see options for ->new().
(8) cpanm HTML::Display::Common
I found that bcat.pl from the examples required this module, but it wasn't installed as a dependency.

Trying to install meteor on centos 5

OS: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Trying to run this command to install meteor:
curl install.meteor.com | /bin/sh
============= Output Error ===============
Installing /tmp/meteor-install-Nv47529/meteor-0.3.6-1.x86_64.rpm
error: Failed dependencies:
libc.so.6(GLIBC_2.6)(64bit) is needed by meteor-0.3.6-1.x86_64
libc.so.6(GLIBC_2.7)(64bit) is needed by meteor-0.3.6-1.x86_64
libc.so.6(GLIBC_2.9)(64bit) is needed by meteor-0.3.6-1.x86_64
libstdc++.so.6(GLIBCXX_3.4.9)(64bit) is needed by meteor-0.3.6-1.x86_64
Installation failed.
============= Output Error ===============
glib is missing showing but check glib using
rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" | grep glibc | sort
showing me
compat-glibc-2.3.4-2.26.i386
compat-glibc-2.3.4-2.26.x86_64
compat-glibc-headers-2.3.4-2.26.x86_64
glibc-2.5-49.el5_5.7.i686
glibc-2.5-49.el5_5.7.x86_64
glibc-common-2.5-49.el5_5.7.x86_64
glibc-devel-2.5-49.el5_5.7.i386
glibc-devel-2.5-49.el5_5.7.x86_64
glibc-headers-2.5-49.el5_5.7.x86_64
glibc-utils-2.5-49.el5_5.7.x86_64
so any idea what is the issue?
GLIBC_2.6 is required by the RPM, you only have GLIBC_2.5 so you need to upgrade.
Alternatively, this dependency may be more strict than it needs to be; try packing Meteor yourself.