How to install libXScrnSaver on openSUSE Leap 42.2 - atom-editor

I wanna install Atom editor on my laptop which is running openSUSE Leap 42.2, I use command zypper in to install the rpm package, but it prompts error info
Problem: nothing provides libXScrnSaver needed by atom-1.12.6-0.1.x86_64
flying#lempstacker:~> sudo zypper in ~/Downloads/atom-1.12.6-0.1.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: nothing provides libXScrnSaver needed by atom-1.12.6-0.1.x86_64
Solution 1: do not install atom-1.12.6-0.1.x86_64
Solution 2: break atom-1.12.6-0.1.x86_64 by ignoring some of its dependencies
Choose from above solutions by number or cancel [1/2/c] (c):
The mirror official repositories I'm using were provided by aliyun, concrete configuration commands are
sudo zypper mr -da
sudo zypper rr `zypper repos | awk '{if(NR>2)print $5}'`
sudo zypper ar -fcg http://mirrors.aliyun.com/opensuse/distribution/leap/42.2/repo/oss/ 'Aliyun-Leap-42.2-OSS'
sudo zypper ar -fcg http://mirrors.aliyun.com/opensuse/distribution/leap/42.2/repo/non-oss/ 'Aliyun-Leap-42.2-Non-OSS'
sudo zypper ar -fcg http://mirrors.aliyun.com/opensuse/update/leap/42.2/oss/ 'Aliyun-Leap-42.2-Update-OSS'
sudo zypper ar -fcg http://mirrors.aliyun.com/opensuse/update/leap/42.2/non-oss/ 'Aliyun-Leap-42.2-Update-Non-OSS'
sudo zypper ref
exectue command zypper repos
flying#lempstacker:~> zypper repos
# | Alias | Name | Enabled | GPG Check | Refresh
--+---------------------------------+---------------------------------+---------+-----------+--------
1 | Aliyun-Leap-42.2-Non-OSS | Aliyun-Leap-42.2-Non-OSS | Yes | (r ) Yes | Yes
2 | Aliyun-Leap-42.2-OSS | Aliyun-Leap-42.2-OSS | Yes | (r ) Yes | Yes
3 | Aliyun-Leap-42.2-Update-Non-OSS | Aliyun-Leap-42.2-Update-Non-OSS | Yes | (r ) Yes | Yes
4 | Aliyun-Leap-42.2-Update-OSS | Aliyun-Leap-42.2-Update-OSS | Yes | (r ) Yes | Yes
flying#lempstacker:~>
I tried to search libXScrnSaver
via command zypper search
flying#lempstacker:~> zypper search libXScrnSaver
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
--+---------------------------+--------------------------------------------------------------+--------
| libXScrnSaver-devel | Development files for the X11 Screen Saver extension library | package
| libXScrnSaver-devel-32bit | Development files for the X11 Screen Saver extension library | package
flying#lempstacker:~>
via command zypper info
flying#lempstacker:~> zypper info libXScrnSaver
Loading repository data...
Reading installed packages...
package 'libXScrnSaver' not found.
flying#lempstacker:~>
but it provided nothing except libXScrnSaver-devel which is not usefull even if I installed it.
I followed blog Install Slack on openSUSE Leap 42.1
it says just need to install libXss1, but it has been installed on my os.
flying#lempstacker:~> sudo zypper in libXss1
Loading repository data...
Reading installed packages...
'libXss1' is already installed.
No update candidate for 'libXss1-1.2.2-11.19.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
flying#lempstacker:~>
I really want to know how to solve the problem!
Who can help me?

I'm in the same boat. Have you tried the option of 'breaking atom' by ignoring the dependencies?
I tried using this opensuse software page but I had no luck:
https://software.opensuse.org/package/libXScrnSaver
When I try to list installed packages I get a develop version:
linux-2472:/home/Downloads # rpm -qa | grep -i libxscr
libXScrnSaver-devel-1.2.2-11.19.x86_64
When I try to Install libXScrnSaver (version 1.2.2-10) I get:
linux-2472:/home/Downloads # zypper in ./libXScrnSaver-
1.2.2-10.1.src.rpm
Loading repository data...
Reading installed packages...
'_tmpRPMcache_:libXScrnSaver=0:1.2.2-10.1' not found in package names. `Trying capabilities.`
No provider of '_tmpRPMcache_:libXScrnSaver=0:1.2.2-10.1' found.
Resolving package dependencies...
Nothing to do.
Note that there are two versions in my link: 1.2.2-10.1 and 1.2.2-23.1 No Luck yet. maybe its that tmprpmcache_ package. I'll try tomorrow, it's late.

I ran into the same problem today on my opensuse 42.2 leap.
But choosing solution 2 (to install by ignoring dependencies) worked just fine.
Although according to this link here:
https://github.com/atom/atom/issues/13354
The libXScrnSaver in not the one it actually wants, instead it requires libXss.so.1
Editing the spec file in the rpm was the solution suggested, although I have no idea how to do it.
This might help you :
https://github.com/atom/atom/pull/13386

It seems it'll be fixed in the upcoming release: https://github.com/atom/atom/pull/13386
I've just downloaded it and had the same problem. But I've installed it even breaking dependencies and it works without problems (be sure to have libXss installed):
sudo rpm -i --nodeps atom.x86_64.rpm

Related

Unable to install R 4.0 on Linux Mint 19.1 Tessa

I have been trying for days now. I would like to upgrade to the latest version of R. I have followed advice found on this link :
Problem installing R4.0 on LInux Mint 19.3
but for me the problem persists for me.
When I do
echo -e "\ndeb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/" | sudo tee -a /etc/apt/sources.list
then
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt-get install r-base
I get this
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base : Depends: r-recommended (= 4.0.5-1.1804.0) but it is not going to be installed
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:7
W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:7
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:7
E: Unable to correct problems, you have held broken packages.
If anyone has an idea of how to solve this I would be eternally grateful.
W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:7
Remove the duplicate entry in your sources (line 5 and 7):
sudo sed -i '7d' /etc/apt/sources.list
The following packages have unmet dependencies:
r-base : Depends: r-recommended (= 4.0.5-1.1804.0) but it is not going to be installed
Use the following command:
sudo apt update
sudo apt install --no-install-recommends r-base
This post:
https://unix.stackexchange.com/a/612316/367012
Says Mint is different than Ubuntu in adding repositories, and suggests manually editing the repository list,
$ sudo xed /etc/apt/sources.list.d/additional-repositories.list
to add:
deb cloud.r-project.org/bin/linux/ubuntu bionic-cran40/
Save and exit the editor, then update the package list:
$ sudo apt update
This post: https://askubuntu.com/a/1113944/968912 suggests removing all the previous versions of R first.

Install LIBCURL-DEVEL on SUSE 12.4 to use CURL R package

I'm working with a SUSE SLE 12.4
> cat /etc/SuSE-release
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 4
I'm trying to install the library curl for R [3.6], but I get this error:
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
* csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
libcurl4 (version 7.60.0-2.11) is installed.
As suggested from the error message I tried to install the Linux Package libcurl-devel.
Unsurprisingly, since I'm dealing with a dev package, I get this message:
> sudo zypper install libcurl-devel
Loading repository data...
Reading installed packages...
'libcurl-devel' not found in package names. Trying capabilities.
No provider of 'libcurl-devel' found.
Resolving package dependencies...
Nothing to do.
I tried to find an online repo that could provide for that package. I found nothing.
Can anyone help me?
If you need more infos, I'll be happy to provide them.
As requested, here you have more infos.
> zypper se *curl*
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
--+-----------------+----------------------------------------+-----------
i | curl | A Tool for Transferring Data from URLs | package
| curl | A Tool for Transferring Data from URLs | srcpackage
i | libcurl4 | Version 4 of cURL shared library | package
i | libcurl4-32bit | Version 4 of cURL shared library | package
| perl-WWW-Curl | Perl extension interface for libcurl | package
| perl-WWW-Curl | Perl extension interface for libcurl | srcpackage
i | python-pycurl | PycURL -- cURL library module | package
| python-pycurl | PycURL -- cURL library module | srcpackage
| python3-pycurl | PycURL -- cURL library module | package
| python3-pycurl | PycURL -- cURL library module | srcpackage
| qemu-block-curl | cURL block support for QEMU | package
> zypper se libcurl*
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
--+----------------+----------------------------------+--------
i | libcurl4 | Version 4 of cURL shared library | package
i | libcurl4-32bit | Version 4 of cURL shared library | package
You can go here here, search for libcurl-devel for your SUSE version, download it and install it locally using provided instructions. I do see that libcurl-devel is available for your system.
UPDATE
In my understanding, the problem is that you don't have the SDK module activated in your system. If you don't have administrative privileges, ask the administrator to activate the SDK module by running:
SUSEConnect -p sle-sdk/12.4/x86_64
After this module is activated, run:
sudo zypper install libcurl-devel
Try updating your package database prior to installing:
sudo zypper ref

R, issue "unable to load shared object cairo.so" on Linux CentOS 7

I've been using R with ggplot2 and other packages on my Linux CentOS 7 for a long time.
Today, all of a sudden, it stopped working.
When I call the png() function in my script, it generates the following errrors:
Warning messages:
1: In png(heatmap_file) :
unable to load shared object '/usr/lib64/R/library/grDevices/libs//cairo.so':
/lib64/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates
2: In png(heatmap_file) : failed to load cairo DLL
I tried to update the cairo package many times but nothing worked out so far.
What can I do?
Thanks!
Your version of cairo (/lib64/libcairo.so.2) depends on a function called FT_Get_Var_Design_Coordinates. This function should come from FreeType. However, your version of libfreetype.so seems to be older and does not have this symbol. So, either you explicitly installed an older version, or "something" comes with an older version of FreeType.
I would look for files called libfreetype.so and check if they have the necessary symbol
I'm on Debian testing and here I get (this means that my version of FreeType does have this symbol; you would get no output if the symbol is not available):
$ nm -s -D /usr/lib/x86_64-linux-gnu/libfreetype.so | grep FT_Get_Var_Design_Coordinates
000000000001d260 T FT_Get_Var_Design_Coordinates
For you, based on the path to libcairo.so, I would expect something like /lib64/libfreetype.so to be the path to check.
I found a solution and I am going to share it with the community.
I am working on a Dell Latitude 3540 laptop running Linux CentOS 7 operating system (centos-release-7-3.1611.el7.centos.x86_64).
I ran sudo yum -y update and I understood there was a duplication issue regarding the freetype package, which was installed twice, and some other packages that were having conflicts.
I then removed the old freetype package and the conflicting packages with this command:
rpm -e freetype-2.4.11-12.el7.i686 --nodeps
rpm -e conflicting-package-1 --nodeps
rpm -e conflicting-package-2 --nodeps
...
Then I updated all the packages I manually removed:
sudo yum -y update freetype
sudo yum -y conflicting-package-1 freetype
sudo yum -y conflicting-package-2 freetype
...
This method worked out for me; I hope it might be helpful to someone.

How to upgrade R in linux?

I am new to Linux. I am using Linux mint 18.1. I have installed R using system software manager. My current R version is 3.2. But I want to upgrade it to version 3.4.
How can I do it?
Note: I now keep on GitHub (here) an up-to-date guide to upgrading R on Linux Mint or Ubuntu Linux, which also includes a bit of extra information about system dependencies for tidyverse, the popular set of data-wrangling packages, as well as devtools, the popular R package development... package.
The link provided by FedRo is a good resource, however a slight change would need to be made since you're using Linux Mint 18.1 which uses Xenial repositories rather than Trusty repositories (see here). I also typically use the approach here to deal with packages I've already installed when I upgrade R rather than the approach offered by FedRo. So, for completeness, these are all the steps you'd need to take:
Step 1
Go to CRAN's list of mirrors and find the URL of the mirror that is closest to you. The terminal commands below assume you choose http://cran.wustl.edu/
Step 2
Open a terminal and enter the following commands1 (replacing http://cran.wustl.edu/ with whichever CRAN mirror URL you chose in step 1):
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo echo "deb http://cran.wustl.edu/bin/linux/ubuntu xenial/" | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt upgrade r-base r-base-dev
sudo apt update
sudo apt upgrade
Note also that I have put to upgrade r-base and r-base-dev, but I don't know if you have r-base-dev installed. If not, I highly recommend you install it via sudo apt install r-base-dev.
Step 3
Start a new R session and run the following:
update.packages(checkBuilt=TRUE, ask=FALSE)
Then you should be good to go.
Update: Linux Mint 19 and R 3.6.x
Since both Linux Mint and R have seen upgrades since I answered this question, I'm updating for those who come to this answer needing the info for Linux Mint 19 and R 3.6.x.
The only difference is that instead of the command
sudo echo "deb http://cran.wustl.edu/bin/linux/ubuntu xenial/" | sudo tee -a /etc/apt/sources.list
you need to use
sudo echo "deb http://cran.wustl.edu/bin/linux/ubuntu bionic-cran35/" | sudo tee -a /etc/apt/sources.list
(replacing http://cran.wustl.edu/ with whichever CRAN mirror URL you chose in step 1)
1 I put here the full key, though many other guides you may see will use only the "short key."
I have updated this guide to use the full key out of security concerns (see here, for example).
Now it is very simple. Just make:
install.packages("ropenblas")
ropenblas::rcompiler()

Install R 3+ on Redhat 6.3

I want to install R on my Red hat cluster which has the version below:
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
When I went to R's homepage and this is what in their repository:
I am wondering there is only redhat version 4 and 5 there and I don't know which version will best fit my operating system.
Texinfo Problem Goes Here
Since I have asked more than 6 questions today. Stackoverflow doesn't like me to ask more questions. So I will put the following questions into this question, sorry about that.
Hi, I was trying to use Expect to automatically log into a remote server and install R.
When I install R, they came up with all kinds of prompts asking 'The package will take xx MB Is that OK with you'?
The command to install:
su -c 'yum install R R-core R-core-devel R-devel'
You need to type in Yes for a few times to finish the installation.
My question is:
Is there a flag for yum install that you can tell the machine to install everything I want you to install. Don't ask me. So I can install those four packages without any prompt.
If that is hard to install in the 'quiet mode', how to write a while loop in Expect so it will send the Y automatically:
Pseudo Code Not Working!
send -- "sudo su -c yum install ...."
while ("Expect '*Is it OK [Y/N]*'"){
send 'Y\r'
# if (expect 'user$')
{break}
}
Thanks a lot in advance.
This is likely due to there being R RPMs in the Extra Packages for Enterprise Linux (EPEL) repos for RHEL6. You can find out more about EPEL on the Fedora website.
You need to configure yum to use EPEL. The easiest way to do this is to install the epel-release package for your platform, eg
su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'
or
su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm'
for example. The you can use yum to install R, e.g. you will probably want
su -c 'yum install R R-core R-core-devel R-devel'
so that you pull in the packages needed to build other add-on packages as most CRAN package are not in EPEL.
At the moment, the latest version of R in EPEL is 3.0.1, so one patch release point behind the latest version 3.0.2.

Resources