How to install Octave on rhel fedora based Amazon EC2 instance? - linux

How to install Octave on Amazon EC2 instance? The configuration of the EC2 instance is as follows:
First, I created a tmp directory and downloaded the EPEL rpm in the tmp directory and installed the EPEL repository with the commands:
I tried to use the following command (please see the following website for more details about this command link for more details of the command) to install Octave, but it was not working (see the following result):
Also, I tried to enable the package by changing "enabled = 0" to "enabled = 1" in the file "/etc/yum.repos.d", and used yum to install octave, but it was still not working. The error message is as follows:
I tried to use the command to test it (see below for more details):
I am not sure if some package management tools (e.g., subscription-manager, dnf) to handle the dependency issues. Thanks!

Amazon Linux is based on RHEL and Fedora, but is not RHEL or Fedora. Fedora EPEL is made on RHEL and will also work on CentOS and other rebuilds which aim to be just like RHEL. It looks like you are hitting an area where Amazon Linux is different. Your options are:
Rebuild all of those missing packages on Amazon Linux
Install Octave and all dependencies from source rather than RPM
Use RHEL, Fedora, or CentOS

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.

Using apt-get on AWS Workspace?

I am trying out AWS Workspaces with the Linux package. Now I want to install some packages, specifically the Atom Editor. However, neither dpkg and apt are installed on the command line nor available via sudo. The tool bar does not seem to include aptitude. How do you install packages?
Amazon Workspaces for Linux uses Amazon Linux 2.
Packages are managed via the Extras Library.
amazon-linux-extras list
amazon-linux-extras install topic
Extras Library (Amazon Linux 2)

'gitk' installation is not working on 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.

Install Marklogic centos virtualbox vm

I recently set up a CentOS 6.4 basic LAMP server (no GUI) in a pre-built Virtualbox image, and then followed the installation guide/steps for MarkLogic.
When I attempt install with rpm -i /tmp/MarkLogic-8.0-1.x86_64.rpm, MarkLogic states that it cannot find libc.so.6, however when I run the command whereis libc.so.6, the shell responds with /lib64/libc.so.6
I would make a symbolic link I suppose, but I'm not sure where MarkLogic is expecting that file to be.
Does anyone have experience installing MarkLogic on Centos6 and how to verify the install is working properly? While ML gave some good instructions, I am very new to CentOS and Redhat, in general.
Running the following yum command before installing MarkLogic should be sufficient normally:
yum -y install glibc.i686 gdb.x86_64 redhat-lsb.x86_64
You can also look at this and related scripts for more inspiration:
https://github.com/grtjn/mlvagrant/blob/master/opt/mlvagrant/install-ml-centos.sh#L17
HTH!

Linux - /usr/local/nagios/bin/nagios file couldnt create

I am trying to install nagios 4.0.6 and nagios -plugins-2.0.2 on fedora 17.
I have followed steps which is mentioned in sourceforge documentation.
http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html
unfortunately /usr/local/nagios/bin/nagios this file isnt created I mean even bin folder haven't created. so that I am unable to start nagios service.
What should I do?
You can install Nagios right from the Fedora repositories.
yum install nagios nagios-plugins
You can also see a list of Nagios-related packages with: yum search nagios.
I suggest you always install apps from the repositories, since the package manager will take care of the dependencies as well as the installation, and the packages there have been already revised and tested for the version of your OS. Use only 3rd party source builds or install/build the packages manually as a last resort.

Resources