I'm developing a website on fedora linux. I want to run test. So I choose watir & ruby development to test.
So I wan to install watir on my system but I have errors :
I ran this script
cat << EOF > /etc/yum.repos.d/ruby.repo
[ruby]
name=ruby for Fedora \$releasever - \$basearch - Base
baseurl=http://mirror.nl.ergo-project.org/repositories/custom-f13-ruby/x86_64/
failovermethod=priority
enabled=1
gpgcheck=0
[ruby-extra]
name=ruby extra for Fedora \$releasever - \$basearch - Base
baseurl=http://mirror.nl.ergo-project.org/repositories/feature-f13-ruby-1.9.1/x86_64/
failovermethod=priority
enabled=1
gpgcheck=0
EOF
yum --enablerepo=ruby,ruby-extra install ruby ruby-devel
gem update --system
gem install firewatir
gem uninstall activesupport
gem install activesupport --version '=2.3.8'
But I have failure on test running. I enter in a ruby console (just running irb command) and when I require 'firewatir' it is ok (the console show me true) but when I create a new test ff=Firewatir::Firefox.new
I have irb(main):002:0> ff=Firewatir::Firefox.new
ArgumentError: Anonymous modules have no name to be referenced by
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:585:into_constant_name'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:391:in qualified_name_for'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:104:inrescue in const_missing'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:94:in const_missing'
from (irb):2
from /usr/local/bin/irb:12:in'`
might be a permissions thing
Did you install as a privileged user?
Related
I followed the instruction from the jekyll for Windows page, but cannot manage to get jekyll to work on my windows system.
After finishing the installation process (which requires separate handling of the nokogiri gem), trying to create a new jekyll page returns the error:
root#LAPTOP-79P42G17:/mnt/c/Users/Stan# jekyll new asdf
Running bundle install in /mnt/c/Users/Stan/asdf...
Bundler: ruby: No such file or directory -- /usr/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/exe/bundle (LoadError)
I've reinstalled all gems to no avail. jekyll -v returns jekyll 3.7.2, ruby -v returns ruby 2.3.6p384 (2017-12-14 revision 61254) [x86_64-linux-gnu]
Any help?
Solution
Contrary to what the instruction say install the most recent version of ruby, otherwise conflicts will emerge, since all other components needed for jekyll are of the most recent version.
In my case the most recent stable version of ruby is 2.5, such that
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.5 ruby2.5-dev build-essential dh-autoreconf
was needed. The rest of the installation steps remain unchainged.
I am trying to a simple command sudo yum install SDL2. I know that this package exists as per the SDL website:
Red Hat-based systems (including Fedora) can simply do "sudo yum install SDL2" to get the library installed system-wide, or "sudo yum install SDL2-devel" to get headers and other build requirements ready for compiling your own SDL programs.
However, when I try to execute my command, I get the following:
Setting up Install Process
No package SDL2 available.
Error: Nothing to do
I am using Red Hat Enterprise Linux Server release 5.3 (Tikanga). How can I go about getting yum to locate this package?
ONLY SDL is available on redhat 5.3
uname -r
2.6.32-573.12.1.el6.centos.plus.x86_64
yum search sdl-devel --verbose
SDL-devel.x86_64 : Files needed to develop Simple DirectMedia Layer applications
Repo : base
With Fedora 26, SDL2 is available in repo fedora
uname -r
4.11.0-2.fc26.x86_64
dnf --disablerepo="*" --enablerepo="fedora" search sdl2-devel --verbose
SDL2-devel.x86_64 : Files needed to develop Simple DirectMedia Layer applications
Repo : fedora
I created an Elastic Beanstalk Environment
ID_LIKE="rhel fedora"
VERSION_ID="2016.03"
PRETTY_NAME="Amazon Linux AMI 2016.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2016.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
I'm trying to install xdebug using
sudo yum install php-pecl-xdebug
But I keep get the following error
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-xdebug.x86_64 0:2.2.3-1.5.amzn1 will be installed
--> Processing Dependency: php(api) = 20090626-x86-64 for package: php-pecl-xdebug-2.2.3-1.5.amzn1.x86_64
--> Processing Dependency: php(zend-abi) = 20090626-x86-64 for package: php-pecl-xdebug-2.2.3-1.5.amzn1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.29-1.8.amzn1 will be installed
--> Processing Conflict: php56-common-5.6.21-1.124.amzn1.x86_64 conflicts php-common < 5.5.22-1.98
--> Finished Dependency Resolution
Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
What should I be using instead? And for reference how do I figure out which packages are available?
Thanks alot.
The php-pecl-xdebug depends on the default version of PHP for Amazon Linux, 2.3. Since you have PHP 5.6 installed, you're getting a conflict.
Unfortunately, it looks like Amazon Linux only has packages for xdebug up to PHP 5.5:
[ec2-user#ip-xxx-xxx-xxx-xxx ~]$ sudo yum search xdebug
Loaded plugins: priorities, update-motd, upgrade-helper
============================= N/S matched: xdebug ==============================
php-pecl-xdebug.x86_64 : PECL package for debugging PHP scripts
php54-pecl-xdebug.x86_64 : PECL package for debugging PHP scripts
php55-pecl-xdebug.x86_64 : PECL package for debugging PHP scripts
Name and summary matches only, use "search all" for everything.
Since there is a PECL package, you can install it through that:
[ec2-user#ip-xxx-xxx-xxx-xxx ~]$ sudo yum install php-pear php56-devel gcc
[ec2-user#ip-xxx-xxx-xxx-xxx ~]$ sudo mount -o remount,exec /var/tmp/
[ec2-user#ip-xxx-xxx-xxx-xxx ~]$ sudo pecl install xdebug
[ec2-user#ip-xxx-xxx-xxx-xxx ~]$ sudo mount -o remount,noexec /var/tmp/
I have successfully Git installed and running.
git --version
git version 2.6.1
I want to add gitk now. I entered the following command to install the gitk package, but it says no package available.
sudo yum install git-gui gitk
Returns
Loaded plugins: security
Setting up Install Process
No package git-gui available.
No package gitk available.
Nothing to do
After that, when I type gitk on the command line, it throws the following error.
Application initialization failed: Can't find a usable tk.tcl in the following directories:
/usr/lib/tcl8.4/tk8.4 /usr/lib/tk8.4 /local/p4clients/pkgbuild-9867w/workspace/build/TclTk/TclTk-8.4.199.32504/RHEL5_64/DEV.STD.PTHREAD/build/private/tcl/install/lib/tk8.4 /lib/tk8.4 /usr/library /library /tk8.4.12/library
This probably means that tk wasn't installed properly.
Error in startup script: invalid command name "tk_setPalette"
while executing
"tk_setPalette background $c selectColor $selc"
(procedure "setui" line 8)
invoked from within
"setui $uicolor"
Note: I tried apt-get, but it’s not working in the system. In a post I found that YUM is the correct one for my system.
Amazon Linux: apt-get: command not found
Since gitk is distributed with git, I would focus on installing the right version of Tcl/Tk.
The git-gui package (even though it is not directly applicable to your Linux distribution) would use a tk8.6 at least. It looks like your version of tk is a bit old.
yum install tk
I'm not sure which flavour you are trying to install gitk on. But the below is the method which I have used to install gitk on RHEL 7.
Get the endpoint release rpm from https://packages.endpoint.com/ as below
cd /tmp
wget https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
yum localinstall endpoint-repo-1.7-1.x86_64.rpm
yum install git-gui gitk
Change the current directory to one of your projects where the .git directory is there and type gitk and Enter:
Note that the URL for the yum repository mentioned has moved to End Point Software Package Repositories
There are specific setup instructions for new Git on CentOS 7 at Installing Git 2 on CentOS 7.
I try to install watir-webdriver on fedora linux. I ran this commands :
cat << EOF > /etc/yum.repos.d/ruby.repo
[ruby]
name=ruby for Fedora \$releasever - \$basearch - Base
baseurl=http://mirror.nl.ergo-project.org/repositories/custom-f13-ruby/x86_64/
failovermethod=priority
enabled=1
gpgcheck=0
[ruby-extra]
name=ruby extra for Fedora \$releasever - \$basearch - Base
baseurl=http://mirror.nl.ergo-project.org/repositories/feature-f13-ruby-1.9.1/x86_64/
failovermethod=priority
enabled=1
gpgcheck=0
EOF
yum -y --enablerepo=ruby,ruby-extra install ruby ruby-devel ruby-irb
gem update --system
gem install watir-webdriver
But When I ran the default script which is available on official website but I have the error
./firewatir:3:in `require': no such file to load -- watir-webdriver (LoadError)
from ./firewatir:3:in `<main>'
Can somebody help me ?
Since you've installed the library as a gem, you need to load Rubygems before watir-webdriver, i.e.:
require "rubygems"
require "watir-webdriver"