[Solved ]How to install Element (Matrix client) in Rocky linux

yeah , i am newbie, who dont know how to install tar.gz in rocky linux.
here i what tried.

online articles that i tried.

  1. linux - bash: ./configure: no such file or directory - Unix & Linux Stack Exchange
  2. How to Install tar.gz in CentOS - RoseHosting

please help me out.



[root@device-name element-v1.9.6]# sudo yum groupinstall "Development tools"
Last metadata expiration check: 1:01:13 ago on Mon 13 Dec 2021 01:35:07 PM IST.
Dependencies resolved.
================================================================================
 Package           Architecture     Version             Repository         Size
================================================================================
Installing Groups:
 Development Tools                                                             

Transaction Summary
================================================================================

Is this ok [y/N]: y
Complete!
[root@device-name element-v1.9.6]# neofetch
        #####           root@device-name 
       #######          ---------------- 
       ##O#O##          OS: Rocky Linux 8.5 (Green Obsidian) x86_64 
       #######          Host: H81M-S 
     ###########        Kernel: 4.18.0-348.2.1.el8_5.x86_64 
    #############       Uptime: 1 hour, 7 mins 
   ###############      Packages: 1521 (rpm), 8 (flatpak), 8 (snap) 
   ################     Shell: bash 4.4.20 
  #################     Resolution: 1366x768 
#####################   WM: Mutter 
#####################   WM Theme: Adwaita 
  #################     Theme: Adwaita [GTK2/3] 
                        Icons: Adwaita [GTK2/3] 
                        Terminal: gnome-terminal 
                        CPU: Intel Pentium G3240 (2) @ 3.100GHz 
                        GPU: Intel HD Graphics 
                        Memory: 2293MiB / 3637MiB 

                                                
                                                


[root@device-name element-v1.9.6]# ./configure
-bash: ./configure: No such file or directory
[root@device-name element-v1.9.6]# make
make: *** No targets specified and no makefile found.  Stop.
[root@device-name element-v1.9.6]# make install
make: *** No rule to make target 'install'.  Stop.
[root@device-name element-v1.9.6]# autoreconf -i
autoreconf: 'configure.ac' or 'configure.in' is required
[root@device-name element-v1.9.6]# 
[root@device-name element-v1.9.6]# ./configure
-bash: ./configure: No such file or directory
[root@device-name element-v1.9.6]# 


Hi,

sudo dnf install tar

compress to tar.gz with:

tar -czvf archive.tar.gz ~/directory-to-compress/

Thanks Tom.

1 Like

@tjdoyle
Tar is already installed on my system, so does every Linux distribution out there.

I have extracted element-v1.9.6.tar.gz to element-v1.9.6 folder.

And then CD element-v1.9.6

Now I want to know how can I install element app or any other software which provides tar.gz instead of .rpm or .deb files.

Hi,

You may wish to change yout topic title, to make it more clear as to want the request is.

Are you trying to install this:

If so, to me it looks like the tar.gz contains a binary, so its already compiled.

Also its looks like it can be installed from the copr repo:

Thanks Tom.

1 Like

I don’t undserstand wtf a newbie goes to install something out of official repos.

1 Like

Hi,

Not sure I quite understand, is element in the offical repos?

Thanks Tom.

1 Like

@2rocky1 first off, you are attempting to run ./configure which doesn’t exist in the code you are downloading. What you therefore should have been doing if using that method, would have been to read the instructions here which is where you downloaded it from: GitHub - vector-im/element-web: A glossy Matrix collaboration client for the web.

As @tjdoyle also linked, was the website, which if you see here: Element secure messenger | Get started you have the ability to download and install the appropriate version for Linux without having to compile or do anything with the code. This is the best method for a newbie since attempting to compile something is a lot more difficult. So therefore:

sudo dnf install -y dnf-plugins-core distribution-gpg-keys
sudo dnf copr enable taw/element
sudo dnf install -y element --refresh

By downloading a tar file doesn’t always necessarily mean it is going to use ./configure, make and make install since those are pretty much related to compiling C++ code. From looking at the code and reading the README on the github link, it explains that it is NodeJS. It also gives instructions on how to unpack and use it quickly, as well as build it yourself - the instructions are there under “Getting Started” and “Building from source”.

2 Likes

Thanks @iwalker

Whenever I want to install an application,
I go to their website check if CLI commands are available (like sudo dnf install something)
And if not available, then I check for .RPM files.
If those are also not available, the website owner usually provides tar.gz files. I have been using Ubuntu for 1ywars and now recently I switched rocky Linux, still also I don’t understand how to install tar.gz.

Anyway. Thanks for CLI commands .
I probably should learn more about github, I always overlook and find something like this.

There is no general applicable answer to that. tar.gz is just a container format and can contain whatever the creator has put in it. How to deal with the content is hopefully documented by creator.

3 Likes