'gitk' installation is not working on Linux - linux

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.

Related

wget command not found on linux server

I have a linux server (completely new, web hosting, nothing is installed into it), and want to use a "wget" command. Currently, it is not found. Kernel version 2.6.32-896.16.1.lve1.4.54.el6.x86_64
I am completely new to linux, tried to solve this issue by myself, but couldn't do it. I log in into this linux server via PuTTY via my Windows OS laptop.
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
To get "wget" to work, I will need to install it. I guess I will need to install first "sudo" and/or "apt" and/or "apt-get". But couldn't do it. Please give me a short list of steps in which order to install them.
Given your kernel version, it looks like your Linux distribution is CentOS 6 or RHEL 6. Try installing wget with this command:
yum install wget
You must be root when you run this command.
Incase you using Debian version of Linux, use the following:
sudo apt-get install wget
From kernel version, it looks like you are using RHEL/Centos 6.
Please check -
https://centos.pkgs.org/6/centos-x86_64/wget-1.12-10.el6.x86_64.rpm.html
If the mentioned dependencies exist in your system, you can directly fire the rpm command
rpm command guide -
https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch02s03.html
If it doesn't work, you need to use yum command. (You need to configure yum command first, if not configured already)
yum install wget
To configure yum command in centos6 -
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories
Note - you need to be root user for above activities.

Yum cannot find the package I want to install

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

System crash after oracle installation with yum

recently i tried to install oracle on my linux with apt (I never used yum before) using fast manual:
http://www.oracle.com/technetwork/articles/servers-storage-admin/ginnydbinstallonlinux-488779.html
And after command:
sudo yum install oracle-rdbms-server-11gR2-preinstall
I got error:
Failed: ca-certificates.noarch 0:2010.63-3.el6_1.5 chkconfig.x86_64 0:1.3.49.3-2.el6 file-libs.x86_64 0:5.04-15.el6 filesystem.x86_64 0:2.4.30-3.el6
initscripts.x86_64 0:9.03.38-1.0.1.el6_4.2
Complete!
And something gone wrong because command like: ps, top are crashing
login#Ass-K55VJ:/etc/yum/repos.d$ ps -e
ps: relocation error: ps: symbol procps_number_version, version _3_2_5 not defined in file libproc-3.2.8.so with link time reference
login#Ass-K55VJ:/etc/yum/repos.d$ top
Segmentation fault (core dumped)
then I tryied to uninstall oracle and dependencies but after command:
sudo yum remove oracle-rdbms-server-11gR2-preinstall
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jul 10 2013, 06:42:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
So it seems like yum install in my system new libraries but didn't link it correctly? I dont know what do in this moment because it seems like armagedon on my ubuntu...
Does this mean you're on ubuntu and tried to install rpm packages using yum? The manual you used is for Oracle Linux 6, why would you try that on ubuntu?
rpm packages are not compatible with debian based systems like ubuntu, which use deb packages. So you've probably screwed your system big time, overwriting important system libraries with incompatible ones.
If apt-get is still working, then you can try to reinstall (apt-get --reinstall install) the equivalent libraries to the ones mentioned in the install manual you linked to - naming isn't always the same for rpm and deb packages. dpkg -l should help you see which the correct installed libraries are. I'd start with the C libraries (libc) etc.
But if apt-get is screwed also, then you'd need to download the packages manually from an ubuntu mirror and install them using dpkg, but I think a reinstall (or restore from backup if you have one) would be the best option.

how to install oracle-rdbms-server-11gR2-preinstall

just completed installing oracle linux 6 update 2 on my virtual box and i have been trying to install oracle 11gr2 on the same operating system i am following the installation guide but i have encountered some problems when i run this command on my terminal
yum install oracle-rdbms-server-11gR2-preinstall
i am getting an error
no package oracle-rdbms-server-11gr2-preinstall available
error nothing to do
is there any way i am doing this wrongly??how can i install the oracle-rdbms-server-11gR2-preinstall
It seem you don't have oracle repository configured, do following:
As an authorized user (for example, root), retrieve the file that configures repository locations:
$sudo cd /etc/yum.repos.d
$sudo wget http://public-yum.oracle.com/public-yum-ol6.repo
Using a text editor, modify the file, changing the field enabled=0 to enabled=1 to reflect repositories that correspond to the machine's operating system release.
Next, install the oracle-rdbms-server-11gR2-preinstall RPM using the yum install command.
The output in Listing 1 shows how the installation checks dependencies and then downloads and installs the required packages.
$sudo yum install oracle-rdbms-server-11gR2-preinstall
mv /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle-ol6.repo /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle.repo
I've given :
yum install oracle-rdbms-server-11gR2-preinstall.x86_64
and works perfectly

Apache2::Request (libapreq2-2.13) on centos 5.5

I'm having a torrid time installing Apache2::Request on Centos 5.5. My apache is the standard one that came with centos.
I'm installing from libapreq2-2.13 and a lot of dependencies didn't already exist. I so far had to do:
yum install httpd-devel # for apxs
I then did:
perl Makefile.PL --with-apache2-apxs=/usr/sbin/apxs
make
The make step then told me i needed: ExtUtils-XSBuilder and Parse-RecDescent, which i duly installed.
running make again gave the compiler error:
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/apreq_xs_postperl.h:22:34: error: modperl_perl_unembed.h: No such file or directory
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/apreq_xs_postperl.h:25:33: error: modperl_common_util.h: No such file or directory
In file included from Apache2.xs:45:
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request__Apache2.h:1:22: error: mod_perl.h: No such file or directory
Can anyone tell me which package i'm missing?
Is there not a method of installing this common package that "just works" (tm).
Many thanks
It's already packaged for Centos.
$ repoquery -i --whatprovides 'perl(Apache2::Request)'
perl-libapreq2-0:2.09-0.rc2.1.el5.x86_64
$ sudo yum install perl-libapreq2
(Actually, that only works if you're using the EPEL repository)
To install the headers , yum install mod_perl-devel

Resources