AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[r](ubuntu)

Martin Hope
Pål Bjartan
Asked: 2021-08-20 13:14:02 +0800 CST

在 Anaconda 中安装 RStudio 时出错:`/opt/anaconda3/lib/R/bin/exec/R:加载共享库时出错:libreadline.so.6:

  • 1

我目前正在尝试安装 Anacondas RStudio 版本。我已经通过 apt 包管理器和最新版本的 RStudio从官方CRAN 存储库安装了 R。我当前版本的 R 安装在 中/usr/lib/R,路径变量设置在/usr/bin/R. 运行 Anaconda Navigator 的 RStudio 安装程序时,它会尝试在/opt/anaconda3/lib/R. 安装过程挂起,现在我无法在终端中键入 R 并打开“旧”R 版本。相反,我收到以下错误消息:

$ R
/opt/anaconda3/lib/R/bin/exec/R: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory

我尝试更新“旧”R 的路径变量,但由于在路径列表/opt/anaconda3/bin之前,usr/bin我仍然得到相同的错误:

$ export PATH=$PATH:/usr/bin/R
$ echo $PATH
/opt/anaconda3/bin:/opt/anaconda3/condabin:/home/username/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/mplusdemo:/usr/bin/R

首先,我不确定这个错误意味着什么。是什么libreadline.so.6?我该如何解决这个问题?

其次,我是否需要,是否建议通过 Anaconda 安装 R?我当前的版本是从 CRAN 存储库更新的,这意味着我会在更新可用时获得更新。相反,Anacondas 版本的最新程度如何?或者,创建指向目录的符号链接是否usr/bin/R明智/opt/anaconda3/bin?

r
  • 1 个回答
  • 1573 Views
Martin Hope
Connorr.0
Asked: 2020-12-23 10:20:26 +0800 CST

R没有找到anaconda安装

  • 1

我正在尝试在我的 Ubuntu 系统上安装 R 包,但遇到了错误。(使用 PC 或 Mac 时我没有收到此错误)

$ R
> install.packages("leiden")

...

Error: package or namespace load failed for ‘leiden’:
 .onAttach failed in attachNamespace() for 'leiden', details:
  call: py_module_import(module, convert = convert)
  error: ModuleNotFoundError: No module named 'pandas'

我很困惑,因为我可以在我的 conda 包中看到熊猫。

$ conda list | grep pandas
pandas                    1.0.1            py37h0573a6f_0

还有哪个 python 似乎给了我我的 anaconda 安装:

/home/usrname/anaconda3/bin/python

任何建议表示赞赏。

python r
  • 1 个回答
  • 447 Views
Martin Hope
Guilherme
Asked: 2020-10-29 07:46:54 +0800 CST

在 Ubuntu 18.04 上安装 libmagick++-dev 的依赖问题

  • 3

我正在尝试使用 install splashr,但遇到了一些依赖问题,似乎没有任何效果。我知道这与操作系统中的错误配置有关,而不是与软件包本身的问题有关,但也许你们可以提供一些指导。基本上在尝试安装 splashr 时,我得到以下日志:

> install.packages("splashr")
Installing package into ‘/home/guilherme/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependency ‘magick’

trying URL 'https://cloud.r-project.org/src/contrib/magick_2.5.0.tar.gz'
Content type 'application/x-gzip' length 4824979 bytes (4.6 MB)
==================================================
downloaded 4.6 MB

trying URL 'https://cloud.r-project.org/src/contrib/splashr_0.6.0.tar.gz'
Content type 'application/x-gzip' length 1099679 bytes (1.0 MB)
==================================================
downloaded 1.0 MB

* installing *source* package ‘magick’ ...
** package ‘magick’ successfully unpacked and MD5 sums checked
Package Magick++ was not found in the pkg-config search path.
Perhaps you should add the directory containing `Magick++.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Magick++' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lMagick++-6.Q16
--------------------------- [ANTICONF] --------------------------------
Configuration failed to find the Magick++ library. Try installing:
 - deb: libmagick++-dev (Debian, Ubuntu)
 - rpm: ImageMagick-c++-devel (Fedora, CentOS, RHEL)
 - csw: imagemagick_dev (Solaris)
 - brew imagemagick@6 (MacOS)
For Ubuntu versions Trusty (14.04) and Xenial (16.04) use our PPA:
   sudo add-apt-repository -y ppa:cran/imagemagick
   sudo apt-get update
   sudo apt-get install -y libmagick++-dev
If Magick++ is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a Magick++.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 MESSAGE] ---------------------------
<stdin>:1:10: fatal error: Magick++.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘magick’
* removing ‘/home/guilherme/R/x86_64-pc-linux-gnu-library/3.4/magick’
Warning in install.packages :
  installation of package ‘magick’ had non-zero exit status
ERROR: dependency ‘magick’ is not available for package ‘splashr’
* removing ‘/home/guilherme/R/x86_64-pc-linux-gnu-library/3.4/splashr’
Warning in install.packages :
  installation of package ‘splashr’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/Rtmp8hJktb/downloaded_packages’

它抱怨没有找到 Magick++ 并导致它所依赖的包 magick 的另一个失败安装。输出类似:

> install.packages("magick")
Installing package into ‘/home/guilherme/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/magick_2.5.0.tar.gz'
Content type 'application/x-gzip' length 4824979 bytes (4.6 MB)
==================================================
downloaded 4.6 MB

* installing *source* package ‘magick’ ...
** package ‘magick’ successfully unpacked and MD5 sums checked
Package Magick++ was not found in the pkg-config search path.
Perhaps you should add the directory containing `Magick++.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Magick++' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lMagick++-6.Q16
--------------------------- [ANTICONF] --------------------------------
Configuration failed to find the Magick++ library. Try installing:
 - deb: libmagick++-dev (Debian, Ubuntu)
 - rpm: ImageMagick-c++-devel (Fedora, CentOS, RHEL)
 - csw: imagemagick_dev (Solaris)
 - brew imagemagick@6 (MacOS)
For Ubuntu versions Trusty (14.04) and Xenial (16.04) use our PPA:
   sudo add-apt-repository -y ppa:cran/imagemagick
   sudo apt-get update
   sudo apt-get install -y libmagick++-dev
If Magick++ is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a Magick++.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 MESSAGE] ---------------------------
<stdin>:1:10: fatal error: Magick++.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘magick’
* removing ‘/home/guilherme/R/x86_64-pc-linux-gnu-library/3.4/magick’
Warning in install.packages :
  installation of package ‘magick’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/Rtmp8hJktb/downloaded_packages’

所以我进入终端安装缺少的包 libmagick++-dev,但它也没有走远,因为它一直在询问依赖项的依赖关系:

以下软件包具有未满足的依赖关系: libmagick++-dev :依赖:libmagick++-6.q16-dev 但不会安装

依赖树还在继续:

libmagick++-dev 
    libmagick++-6.q16-dev 
        libmagickcore-6.q16-dev 
            libmagickwand-6.q16-dev 
                librsvg2-dev 
                    libcairo2-dev 
                        libfontconfig1-dev 
                            libfontconfig1 

由于错误,我无法安装它们中的任何一个:“......但它不会被安装”

我已经尝试多次卸载/安装 imagemagick 无济于事。

这些是有关环境变量的一些信息。

$PATH:
/home/guilherme/.local/share/umake/bin:/home/guilherme/bin:/home/guilherme/.local/share/umake/bin:/home/guilherme/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/guilherme/.config/composer/vendor/bin:bin/msys-ssh-1000-18:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/guilherme/.fzf/bin:/home/guilherme/.config/composer/vendor/bin

$PKG_CONFIG_PATH:(空)

lsb_release -a: 
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic

我完全迷路了。谁能帮我这个?

编辑: 根据 N0rbert 的建议,这是输出apt-cache policy libmagick++-6.q16-dev:

libmagick++-6.q16-dev:
  Installed: (none)
  Candidate: 8:6.9.7.4+dfsg-16ubuntu6.8
  Version table:
     8:6.9.7.4+dfsg-16ubuntu6.8 500
        500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
     8:6.9.7.4+dfsg-16ubuntu6 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
r imagemagick 18.04
  • 3 个回答
  • 3032 Views
Martin Hope
Doug Fir
Asked: 2020-10-05 05:44:45 +0800 CST

如何停止在 localhost:8787 上加载应用程序 rstudio

  • 1

(欢迎标记建议,我不知道如何正确分类或标记我的问题)

Ubuntu 18.04。

我有一个谜。当我访问 localhost:8787 时,我被带到 rstudio 登录屏幕:

在此处输入图像描述

我不知道在 localhost:8787 托管 rstudio 应用程序的进程是什么。几周前,我确实为通过 localhost:8787 访问的 rstudio 运行了一个 docker 容器。但是,该容器已被停止、删除,事实上,我已经删除了所有 docker 镜像:

(这里没有容器)

docker container ls
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

甚至没有要运行的图像:

docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

在搜索“如何判断本地主机上托管的进程”后,我发现了一篇帖子。我不确定在这里使用什么搜索词。

经过一番搜索,我在终端中运行了这个命令:

netstat -aon | grep 8787

哪个返回了这个:

netstat -aon | grep 8787
tcp        0      0 0.0.0.0:8787            0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41490         TIME_WAIT   timewait (47.91/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41212         TIME_WAIT   timewait (16.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41402         TIME_WAIT   timewait (39.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41344         TIME_WAIT   timewait (32.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41144         TIME_WAIT   timewait (7.76/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41340         TIME_WAIT   timewait (31.84/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41090         TIME_WAIT   timewait (0.76/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41096         TIME_WAIT   timewait (1.74/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41200         TIME_WAIT   timewait (14.80/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41556         TIME_WAIT   timewait (56.61/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41080         TIME_WAIT   timewait (0.00/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41356         TIME_WAIT   timewait (33.85/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41240         TIME_WAIT   timewait (19.80/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41492         TIME_WAIT   timewait (48.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41294         TIME_WAIT   timewait (26.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41078         TIME_WAIT   timewait (0.00/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41324         TIME_WAIT   timewait (29.83/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41286         TIME_WAIT   timewait (25.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41436         TIME_WAIT   timewait (41.86/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41388         TIME_WAIT   timewait (37.86/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41282         TIME_WAIT   timewait (24.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41306         TIME_WAIT   timewait (27.83/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41198         TIME_WAIT   timewait (14.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41564         TIME_WAIT   timewait (57.61/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41170         TIME_WAIT   timewait (10.79/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41548         TIME_WAIT   timewait (55.61/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41520         TIME_WAIT   timewait (51.92/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41216         TIME_WAIT   timewait (16.80/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41348         TIME_WAIT   timewait (32.89/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41394         TIME_WAIT   timewait (38.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41118         TIME_WAIT   timewait (4.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41226         TIME_WAIT   timewait (17.81/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41298         TIME_WAIT   timewait (26.83/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41130         TIME_WAIT   timewait (5.81/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41544         TIME_WAIT   timewait (54.92/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41498         TIME_WAIT   timewait (48.91/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41450         TIME_WAIT   timewait (43.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41562         TIME_WAIT   timewait (56.95/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41202         TIME_WAIT   timewait (14.80/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41092         TIME_WAIT   timewait (1.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41106         TIME_WAIT   timewait (2.76/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41196         TIME_WAIT   timewait (14.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41352         TIME_WAIT   timewait (33.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41574         TIME_WAIT   timewait (58.62/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41554         TIME_WAIT   timewait (55.93/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41272         TIME_WAIT   timewait (23.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41338         TIME_WAIT   timewait (31.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41560         TIME_WAIT   timewait (56.94/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41390         TIME_WAIT   timewait (37.93/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41452         TIME_WAIT   timewait (43.86/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41346         TIME_WAIT   timewait (32.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41570         TIME_WAIT   timewait (57.96/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41254         TIME_WAIT   timewait (21.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41486         TIME_WAIT   timewait (47.61/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41350         TIME_WAIT   timewait (32.92/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41382         TIME_WAIT   timewait (36.87/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41110         TIME_WAIT   timewait (3.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41374         TIME_WAIT   timewait (35.87/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41274         TIME_WAIT   timewait (23.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41270         TIME_WAIT   timewait (23.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41172         TIME_WAIT   timewait (11.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41244         TIME_WAIT   timewait (20.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41482         TIME_WAIT   timewait (46.89/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41370         TIME_WAIT   timewait (35.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41208         TIME_WAIT   timewait (15.79/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41578         TIME_WAIT   timewait (58.96/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41292         TIME_WAIT   timewait (25.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41114         TIME_WAIT   timewait (3.77/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41156         TIME_WAIT   timewait (9.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41460         TIME_WAIT   timewait (44.89/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41168         TIME_WAIT   timewait (10.78/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41310         TIME_WAIT   timewait (28.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41440         TIME_WAIT   timewait (42.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41160         TIME_WAIT   timewait (9.78/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41552         TIME_WAIT   timewait (55.92/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41584         TIME_WAIT   timewait (59.94/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41234         TIME_WAIT   timewait (18.81/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41132         TIME_WAIT   timewait (6.55/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41366         TIME_WAIT   timewait (34.86/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41458         TIME_WAIT   timewait (44.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41456         TIME_WAIT   timewait (44.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41404         TIME_WAIT   timewait (39.86/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41084         TIME_WAIT   timewait (0.54/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41386         TIME_WAIT   timewait (37.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41210         TIME_WAIT   timewait (15.80/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41098         TIME_WAIT   timewait (1.74/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41134         TIME_WAIT   timewait (6.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41320         TIME_WAIT   timewait (29.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41514         TIME_WAIT   timewait (50.92/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41312         TIME_WAIT   timewait (28.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41120         TIME_WAIT   timewait (4.76/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41082         TIME_WAIT   timewait (0.00/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41568         TIME_WAIT   timewait (57.94/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41462         TIME_WAIT   timewait (44.89/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41566         TIME_WAIT   timewait (57.62/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41360         TIME_WAIT   timewait (34.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41104         TIME_WAIT   timewait (2.75/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41536         TIME_WAIT   timewait (53.92/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41586         TIME_WAIT   timewait (59.96/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41326         TIME_WAIT   timewait (29.83/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41276         TIME_WAIT   timewait (24.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41378         TIME_WAIT   timewait (36.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41540         TIME_WAIT   timewait (54.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41330         TIME_WAIT   timewait (30.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41392         TIME_WAIT   timewait (38.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41384         TIME_WAIT   timewait (37.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41488         TIME_WAIT   timewait (47.89/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41162         TIME_WAIT   timewait (9.79/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41238         TIME_WAIT   timewait (19.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41504         TIME_WAIT   timewait (49.90/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41194         TIME_WAIT   timewait (13.79/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41300         TIME_WAIT   timewait (26.83/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41242         TIME_WAIT   timewait (19.80/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41476         TIME_WAIT   timewait (46.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41572         TIME_WAIT   timewait (58.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41204         TIME_WAIT   timewait (15.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41538         TIME_WAIT   timewait (53.92/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41176         TIME_WAIT   timewait (11.78/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41108         TIME_WAIT   timewait (3.55/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41150         TIME_WAIT   timewait (8.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41480         TIME_WAIT   timewait (46.89/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41420         TIME_WAIT   timewait (40.87/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41532         TIME_WAIT   timewait (53.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41534         TIME_WAIT   timewait (53.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41232         TIME_WAIT   timewait (18.80/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41088         TIME_WAIT   timewait (0.74/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41576         TIME_WAIT   timewait (58.94/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41252         TIME_WAIT   timewait (21.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41124         TIME_WAIT   timewait (5.55/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41398         TIME_WAIT   timewait (38.87/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41526         TIME_WAIT   timewait (52.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41308         TIME_WAIT   timewait (27.83/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41468         TIME_WAIT   timewait (45.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41220         TIME_WAIT   timewait (17.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41102         TIME_WAIT   timewait (2.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41246         TIME_WAIT   timewait (20.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41296         TIME_WAIT   timewait (26.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41542         TIME_WAIT   timewait (54.62/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41218         TIME_WAIT   timewait (16.80/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41508         TIME_WAIT   timewait (50.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41412         TIME_WAIT   timewait (40.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41258         TIME_WAIT   timewait (21.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41336         TIME_WAIT   timewait (31.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41328         TIME_WAIT   timewait (30.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41512         TIME_WAIT   timewait (50.91/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41380         TIME_WAIT   timewait (36.85/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41364         TIME_WAIT   timewait (34.85/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41288         TIME_WAIT   timewait (25.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41256         TIME_WAIT   timewait (21.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41582         TIME_WAIT   timewait (59.62/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41186         TIME_WAIT   timewait (12.79/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41400         TIME_WAIT   timewait (39.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41302         TIME_WAIT   timewait (27.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41368         TIME_WAIT   timewait (35.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41550         TIME_WAIT   timewait (55.61/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41182         TIME_WAIT   timewait (12.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41158         TIME_WAIT   timewait (9.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41484         TIME_WAIT   timewait (47.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41112         TIME_WAIT   timewait (3.76/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41332         TIME_WAIT   timewait (30.83/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41580         TIME_WAIT   timewait (59.61/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41410         TIME_WAIT   timewait (40.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41524         TIME_WAIT   timewait (52.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41206         TIME_WAIT   timewait (15.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41224         TIME_WAIT   timewait (17.80/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41248         TIME_WAIT   timewait (20.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41448         TIME_WAIT   timewait (43.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41154         TIME_WAIT   timewait (8.78/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41362         TIME_WAIT   timewait (34.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41354         TIME_WAIT   timewait (33.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41230         TIME_WAIT   timewait (18.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41076         TIME_WAIT   timewait (0.00/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41116         TIME_WAIT   timewait (4.55/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41496         TIME_WAIT   timewait (48.90/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41188         TIME_WAIT   timewait (13.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41164         TIME_WAIT   timewait (10.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41446         TIME_WAIT   timewait (42.88/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41236         TIME_WAIT   timewait (19.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41438         TIME_WAIT   timewait (41.86/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41322         TIME_WAIT   timewait (29.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41260         TIME_WAIT   timewait (22.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41268         TIME_WAIT   timewait (23.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41516         TIME_WAIT   timewait (51.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41304         TIME_WAIT   timewait (27.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41192         TIME_WAIT   timewait (13.78/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41406         TIME_WAIT   timewait (39.87/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41316         TIME_WAIT   timewait (28.84/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41278         TIME_WAIT   timewait (24.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41472         TIME_WAIT   timewait (45.89/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41126         TIME_WAIT   timewait (5.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41432         TIME_WAIT   timewait (41.59/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41136         TIME_WAIT   timewait (6.76/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41358         TIME_WAIT   timewait (33.85/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41342         TIME_WAIT   timewait (31.86/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41140         TIME_WAIT   timewait (7.55/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41264         TIME_WAIT   timewait (22.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41222         TIME_WAIT   timewait (17.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41262         TIME_WAIT   timewait (22.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41470         TIME_WAIT   timewait (45.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41454         TIME_WAIT   timewait (43.87/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41152         TIME_WAIT   timewait (8.77/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41558         TIME_WAIT   timewait (56.62/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41138         TIME_WAIT   timewait (6.78/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41122         TIME_WAIT   timewait (4.77/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41334         TIME_WAIT   timewait (30.84/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41142         TIME_WAIT   timewait (7.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41510         TIME_WAIT   timewait (50.61/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41478         TIME_WAIT   timewait (46.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41502         TIME_WAIT   timewait (49.61/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41266         TIME_WAIT   timewait (22.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41314         TIME_WAIT   timewait (28.83/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41522         TIME_WAIT   timewait (51.93/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41178         TIME_WAIT   timewait (11.79/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41146         TIME_WAIT   timewait (7.78/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41434         TIME_WAIT   timewait (41.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41280         TIME_WAIT   timewait (24.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41128         TIME_WAIT   timewait (5.80/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41474         TIME_WAIT   timewait (45.89/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41376         TIME_WAIT   timewait (36.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41228         TIME_WAIT   timewait (18.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41418         TIME_WAIT   timewait (40.87/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41442         TIME_WAIT   timewait (42.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41190         TIME_WAIT   timewait (13.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41530         TIME_WAIT   timewait (52.92/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41250         TIME_WAIT   timewait (20.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41396         TIME_WAIT   timewait (38.86/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41372         TIME_WAIT   timewait (35.87/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41546         TIME_WAIT   timewait (54.93/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41528         TIME_WAIT   timewait (52.91/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41500         TIME_WAIT   timewait (49.60/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41180         TIME_WAIT   timewait (12.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41184         TIME_WAIT   timewait (12.78/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41506         TIME_WAIT   timewait (49.91/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41166         TIME_WAIT   timewait (10.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41518         TIME_WAIT   timewait (51.61/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41494         TIME_WAIT   timewait (48.61/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41214         TIME_WAIT   timewait (16.58/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41094         TIME_WAIT   timewait (1.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41086         TIME_WAIT   timewait (0.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41148         TIME_WAIT   timewait (8.56/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41290         TIME_WAIT   timewait (25.82/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41174         TIME_WAIT   timewait (11.57/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41100         TIME_WAIT   timewait (2.55/0/0)
tcp        0      0 127.0.0.1:8787          127.0.0.1:41444         TIME_WAIT   timewait (42.87/0/0)

这里发生了什么事?!为什么 localhost:8787 服务于 rstudio 应用程序,我该如何阻止它?

编辑:每条评论的输出dpkg -l | grep rstudio和下方:systemctl list-units --type service | grep -i rstudio

dpkg -l | grep rstudio
ii  rstudio                                    1.3.1093                                         amd64        RStudio
ii  rstudio-server                             1.3.1093                                         amd64        RStudio Server

和

systemctl list-units --type service | grep -i rstudio
rstudio-server.service                                loaded active running RStudio Server    
r webserver localhost rstudio
  • 1 个回答
  • 405 Views
Martin Hope
18Man
Asked: 2020-09-09 19:31:27 +0800 CST

无法在 ubuntu 18.04.3 LTS 上启动 R Studio

  • 1

我使用本教程安装 RStudio https://linuxhint.com/rstudio-for-ubuntu/

但是当我开始这个阶段时sudo gdebi -n rstudio-0.99.896-amd64.deb

它说

Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libgstreamer0.10-0
gnome r gdebi 18.04 rstudio
  • 1 个回答
  • 268 Views
Martin Hope
tueftla
Asked: 2020-08-25 22:38:27 +0800 CST

从 R 中的闪亮应用 runApp() 时连接到 firefox 失败

  • 0

我正在做闪亮的教程,就像在https://shiny.rstudio.com/tutorial/written-tutorial/lesson1/上解释的那样

在某个时候,我必须运行示例应用程序。示例应用程序存储在文件夹/usr/local/lib/R/site-library/shiny/examples/01_hello 中,我想在终端中运行它。所以我输入

sudo -i R  # entering my password so that R is being started
library(shiny)
runApp("/usr/local/lib/R/site-library/shiny/examples/01_hello")

但它不起作用。

我的控制台给了我以下错误信息:

Listening on http://127.0.0.1:3530 

Running Firefox as root in a
regular user's session is not supported.  ($XAUTHORITY is
/run/user/1000/gdm/Xauthority which is owned by tobias.) 

Running
Firefox as root in a regular user's session is not supported. 
($XAUTHORITY is /run/user/1000/gdm/Xauthority which is owned by
tobias.) 

Running Firefox as root in a regular user's session is not
supported.  ($XAUTHORITY is /run/user/1000/gdm/Xauthority which is
owned by tobias.) 

/usr/bin/xdg-open: 851: /usr/bin/xdg-open: iceweasel: not found 
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: seamonkey: not found 
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: mozilla: not found 
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: epiphany: not found 
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: konqueror: not found 
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: chromium: not found 
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: chromium-browser: not found 
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: google-chrome: not found 
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: www-browser: not found 
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: links2: not found 
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: elinks:not found 
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: lynx: not found
/usr/bin/xdg-open: 851: /usr/bin/xdg-open: w3m: not found 
xdg-open: no method available for opening 'http://127.0.0.1:3530'

此处不支持在常规用户会话中以 root 身份运行 Firefox。($XAUTHORITY 是 /run/user/1000/gdm/Xauthority,归基数所有。)我发现了 firefox 问题,但与 R 无关...

我的目标是在输入runApp()Firefox 后分别打开一个新选项卡并显示闪亮的应用程序,以便我可以与之交互。

另外我不得不说,我是 ubuntu 的新手——所以在回答我的问题时请记住这一点。提前谢谢了!

command-line r browser 18.04
  • 1 个回答
  • 266 Views
Martin Hope
bixiou
Asked: 2020-05-09 15:37:15 +0800 CST

有时命令在升级到 R 4.0 和 Ubuntu 20.04 后不会终止

  • 1

几天前我已经将 R(从 3.6 升级到 4.0)和 RStudio(从 1.1 升级到 1.2.5),昨天将 Ubuntu 从 18.04 升级到 20.04。

从那时起,R有时在执行某些命令时永远不会终止:(ivreg来自 package AER)、summary(来自 logit 回归)和logitmfx(来自 package mfx)。有时这些命令运行良好,但大多数时候我必须终止进程(killall rstudio),因为 R 不会终止执行,即使按下 RStudio 中的红色停止按钮也是如此。

当我尝试example('AER')时,它工作得很好。然后我重新安装了包AER。In readLines(file, skipNul = TRUE) : cannot open compressed file '/usr/lib/R/site-library/[package]/DESCRIPTION', probable reason 'No such file or directory'它抛出了 10 个where [package]is abind, colorspace, ...类型的警告dichromat(但不是AER)。

此后example('AER')引发警告:no help found for ‘AER’.

我已经删除并重新安装了 R 4.0:它没有帮助。此外,apt purge r-base* r-recommended r-cran-*抛出警告:dpkg: warning: while removing r-base-core, directory '/usr/lib/R/site-library' not empty so not removed. 此外,还有一堆Package [package] is not installed, so not removed,包括 for [package]equal tor-cran-abind和上面列出的另一个(这purge也返回了一堆Note, selecting [package] for glob 'r-cran-*')。

我没有尝试在没有 RStudio 的情况下使用 R。在升级到 Ubuntu 20.04 期间,我可能正在使用 RStudio。另外,我不记得这个问题是在我升级 R 和 RStudio(这是我最好的猜测)之后还是在我升级 Ubuntu 之后(一两天后)开始的。

我希望有人能帮帮忙。

r rstudio 20.04
  • 1 个回答
  • 60 Views
Martin Hope
LSSousa
Asked: 2020-05-06 14:05:57 +0800 CST

在 Ubuntu 18.04 中安装 R 版本 3.6.3 - “make”问题

  • 0

我已经卸载了旧的 R 版本,我正在尝试重新安装(我的操作系统是 Ubuntu 18.04)。我正在使用这些命令:

cd Downloads
tar -zxvf R-3.6.3.tar.gz
cd R-3.6.3
./configure --enable-R-shlib

之后,我尝试使用这些:

make
sudo make install

但是,当我键入 make 时,我收到以下消息:

make: *** No target indicated and no make file found. Stop.

我该如何处理?

r 18.04
  • 1 个回答
  • 3390 Views
Martin Hope
Ko Byeongmin
Asked: 2020-04-24 23:33:29 +0800 CST

无法在 GNU R 和 Ubuntu 20.04 中使用 solve() 函数

  • 3

昨天我将我的 Kubuntu 19.10 机器更新到了 20.04,到目前为止我对升级感到满意。但是我发现更新后我的 GNU R 安装存在一个严重问题,并寻求您的帮助。

问题是,我不能在 GNU R 中使用 solve() 函数。具体来说,每当我尝试使用上述函数反转矩阵时,控制台就会挂起。下面我详细解释一下这种情况。

考虑代码

D = matrix(
data = c(1, 2, 3, 4),
nrow = 2,
ncol = 2,
byrow = TRUE
)
solve(D)
  1. 如果我在 R 中启动从终端调用的代码,比如 Konsole,会话将冻结。
    • 我知道系统冻结的确切时间是我执行solve()函数的时候。
    • 根据 htop,当这种情况发生时,我的一个 CPU 内核被 100% 使用。
  2. 如果我在 RStudio 的控制台中启动相同的代码,代码会按预期工作。但是,如果我使用 RStudio 中的终端调用它,会话就会挂起。
  3. 使用 --vanilla 启动 R 并不能解决问题。
  4. 重新启动 PC,使用我的外部显卡,在 apt 中重新安装 r-base-core 包,并尝试使用不同的终端仿真器都没有帮助。
  5. 从 R 中solve( ) 函数的文档可以看出,solve(A, B) 实际上有两个参数:A 是矩阵,B 是向量或矩阵。如果 B 是向量,则求解线性系统 Ax = B。如果 B 是矩阵,则求解 AX = B 并返回 X。如果在第二个参数中没有给出任何内容,它会自动将适当大小的单位矩阵假定为 B。求解线性系统的第一个函数起作用。但是,如果我将矩阵指定为第二个参数,则会发生同样的问题。
  6. 使用 qr.solve(A) 的 QR 分解仍然可以很好地工作。

以下是我的问题:

  1. 有没有人和我一样的问题?
  2. 我还寻求有关如何解决此问题的建议。

供您参考,我使用的是从默认 apt 存储库安装的 R 版本 3.6.3。

感谢您的阅读,并保持安全!

ps 我在这个 Ubuntu 社区提出这个问题,因为我认为这是一个特定于 Ubuntu(或者实际上是我的特定机器的问题)的问题,因为我在 R 相关网站中没有找到相关信息或错误报告。


从可执行的 bash 脚本文件执行 N0rbert 的代码,会话在solve(D) 处挂起。

kobyeongmin@odie:~/Temp$ ./r-test.sh 

R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> D = matrix(
+ data = c(1, 2, 3, 4),
+ nrow = 2,
+ ncol = 2,
+ byrow = TRUE
+ )
> solve(D)

此外,这里是哪个 R 和 R -- 版本的输出:

kobyeongmin@odie:~$ which R
/usr/bin/R
kobyeongmin@odie:~$ R --version
R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.
command-line r konsole 20.04
  • 1 个回答
  • 150 Views
Martin Hope
Kye
Asked: 2020-04-10 18:41:29 +0800 CST

无法找到软件包 libicu60

  • 2

我正在尝试在 Ubuntu 上安装 R 编程语言。我已按照这些说明进行操作,但似乎缺少我无法安装的依赖项。

https://docs.rstudio.com/resources/install-r/

我已经用谷歌搜索了......但没有什么特别突出......我错过了什么?

kye@DEVRSTUDIO:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.10
Release:    19.10
Codename:   eoan
kye@DEVRSTUDIO:~$ sudo apt update
Hit:1 http://azure.archive.ubuntu.com/ubuntu eoan InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu eoan-updates InRelease [97.5 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu eoan-backports InRelease [88.8 kB]
Get:4 http://azure.archive.ubuntu.com/ubuntu eoan-updates/main amd64 Packages [261 kB]
Get:5 http://azure.archive.ubuntu.com/ubuntu eoan-updates/universe amd64 Packages [203 kB]
Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:7 http://security.ubuntu.com/ubuntu eoan-security InRelease      
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Fetched 650 kB in 1s (501 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
15 packages can be upgraded. Run 'apt list --upgradable' to see them.
kye@DEVRSTUDIO:~$ sudo apt install libicu60
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libicu60
kye@DEVRSTUDIO:~$ 
package-management r rstudio
  • 1 个回答
  • 9409 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve