本文将为您提供关于normalizePath(path,winslash="/",mustWork=TRUE)中的错误:没有这样的文件或目录的详细介绍,同时,我们还将为您提供关于/usr/bin/en
本文将为您提供关于normalizePath(path, winslash = "/", mustWork = TRUE) 中的错误:没有这样的文件或目录的详细介绍,同时,我们还将为您提供关于/ usr / bin / env:python2:没有这样的文件或目录、arm-linux-gnu-gcc致命错误:stdio.h:没有这样的文件或目录、Bash on cygwin:没有这样的文件或目录、build – 致命错误:vector:没有这样的文件或目录的实用信息。
本文目录一览:- normalizePath(path, winslash = "/", mustWork = TRUE) 中的错误:没有这样的文件或目录
- / usr / bin / env:python2:没有这样的文件或目录
- arm-linux-gnu-gcc致命错误:stdio.h:没有这样的文件或目录
- Bash on cygwin:没有这样的文件或目录
- build – 致命错误:vector:没有这样的文件或目录
normalizePath(path, winslash = "/", mustWork = TRUE) 中的错误:没有这样的文件或目录
如何解决normalizePath(path, winslash = "/", mustWork = TRUE) 中的错误:没有这样的文件或目录?
我开发了一个闪亮的应用程序,并将我的应用程序部署为一个库,我在阅读时创建了一个名为 inst
的目录,在这个目录中有我的闪亮应用程序。
我的包目录
- Tree-package
-DESCRIPTION
-LICENSE
-inst
-app.R
-global.R
-shiny-run.R
-www
我希望我的应用在后台运行 为此,我创建了这个脚本
shiny-run.R
options(shiny.autoreload = TRUE)
#Set up permanent port
shiny::runApp(appDir = "inst/app.R",port = 3522)
如果我运行 Shiny-run.R 一切正常,但是当我尝试使用此脚本在后台运行我的应用程序 global.R
library(rstudioapi)
library(shiny)
library(Tree)
#rstudioapi::jobRunScript(path = "inst/shiny-run.R")
jobRunScript(path = "shiny-run.R")
#Viewer
rstudioapi::viewer("http://127.0.0.1:3522")
有一个错误:
Error in normalizePath(path,winslash = "/",mustWork = TRUE) :
path[1]="shiny-run.R": No such file or directory
我不知道为什么会这样
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
/ usr / bin / env:python2:没有这样的文件或目录
我试图在Ubuntu上为Emacs配置Python,但出现以下错误:
/usr/bin/env: python2: No such file or directory
有人可以帮我吗?我该怎么解决?
答案1
小编典典可能是真的。该链接/usr/bin/python2 -> (the realone)
应由您的Python软件包提供,但事实并非如此,也不能在通过可以找到它的任何其他位置$PATH
。
您应该将所述链接放在(一个)适当位置的路径中。
arm-linux-gnu-gcc致命错误:stdio.h:没有这样的文件或目录
这些是/ usr / bin中的文件
[root@xilinx bin]# ls -ld arm*-rwxr-xr-x. 1 root root 691752 Feb 5 2013 arm-linux-gnu-addr2line-rwxr-xr-x. 1 root root 721416 Feb 5 2013 arm-linux-gnu-ar-rwxr-xr-x. 1 root root 1297632 Feb 5 2013 arm-linux-gnu-as-rwxr-xr-x. 1 root root 689168 Feb 5 2013 arm-linux-gnu-c++filt-rwxr-xr-x. 1 root root 545664 Feb 6 2013 arm-linux-gnu-cpp-rwxr-xr-x. 1 root root 34176 Feb 5 2013 arm-linux-gnu-elfedit-rwxr-xr-x. 1 root root 544624 Feb 6 2013 arm-linux-gnu-gcc-rwxr-xr-x. 1 root root 214400 Feb 6 2013 arm-linux-gnu-gcov-rwxr-xr-x. 1 root root 760640 Feb 5 2013 arm-linux-gnu-gprof-rwxr-xr-x. 2 root root 1177528 Feb 5 2013 arm-linux-gnu-ld-rwxr-xr-x. 2 root root 1177528 Feb 5 2013 arm-linux-gnu-ld.bfd-rwxr-xr-x. 1 root root 704672 Feb 5 2013 arm-linux-gnu-nm-rwxr-xr-x. 1 root root 875456 Feb 5 2013 arm-linux-gnu-objcopy-rwxr-xr-x. 1 root root 1096992 Feb 5 2013 arm-linux-gnu-objdump-rwxr-xr-x. 1 root root 721456 Feb 5 2013 arm-linux-gnu-ranlib-rwxr-xr-x. 1 root root 389040 Feb 5 2013 arm-linux-gnu-readelf-rwxr-xr-x. 1 root root 693608 Feb 5 2013 arm-linux-gnu-size-rwxr-xr-x. 1 root root 691648 Feb 5 2013 arm-linux-gnu-strings-rwxr-xr-x. 1 root root 875456 Feb 5 2013 arm-linux-gnu-strip
我正在按照本教程交叉编译一个简单的C程序:
/* myinit.c * Build instructions: * ${CROSS_COMPILE}gcc -static init.c -o init * */#include <stdio.h>intmain (){ printf ("\n"); printf ("Hello world from %s!\n", __FILE__); while (1) { } return 0;}
现在,我将其保存为.c文件,并尝试对其进行编译;
[root@xilinx Xilinx-ZC702-14.7]# arm-linux-gnu-gcc myinit.c myinit.c:6:19: fatal error: stdio.h: No such file or directorycompilation terminated.
仅当我使用arm-linux-gnu-gcc时,这才令人发指。
但是当我使用gcc时,它工作正常。
为什么arm-linux *会出现此错误?
更新资料
[root@xilinx Xilinx-ZC702-14.7]# arm-linux-gnu-cpp -Wp,-vignoring nonexistent directory "/usr/lib/gcc/arm-linux-gnueabi/4.7.2/../../../../arm-linux-gnueabi/sys-include"ignoring nonexistent directory "/usr/lib/gcc/arm-linux-gnueabi/4.7.2/../../../../arm-linux-gnueabi/include"#include "..." search starts here:#include <...> search starts here: /usr/lib/gcc/arm-linux-gnueabi/4.7.2/include /usr/lib/gcc/arm-linux-gnueabi/4.7.2/include-fixedEnd of search list.
详细
[root@xilinx Xilinx-ZC702-14.7]# arm-linux-gnu-gcc -v myinit.c Using built-in specs.COLLECT_GCC=arm-linux-gnu-gccCOLLECT_LTO_WRAPPER=/usr/libexec/gcc/arm-linux-gnueabi/4.7.2/lto-wrapperTarget: arm-linux-gnueabiConfigured with: ../gcc-4.7.2-20121114-aarch64/configure --disable-dependency-tracking --disable-silent-rules --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=arm-linux-gnueabi --enable-targets=all --program-prefix=arm-linux-gnu- --enable-languages=c --with-newlib --without-headers --disable-sjlj-exceptions --with-system-libunwind --disable-nls --disable-threads --disable-shared --disable-libmudflap --disable-libssp --disable-libgomp --disable-libquadmath --disable-gold --disable-decimal-float --enable-checking= --enable-gnu-unique-object --enable-linker-build-id --disable-plugin --enable-nls --with-system-zlib --with-bugurl=http://bugzilla.redhat.com/bugzilla/ --enable-obsoleteThread model: singlegcc version 4.7.2 20121105 (Red Hat 4.7.2-2.aa.20121114svn) (GCC) COLLECT_GCC_OPTIONS=''-v'' ''-mtls-dialect=gnu'' /usr/libexec/gcc/arm-linux-gnueabi/4.7.2/cc1 -quiet -v myinit.c -quiet -dumpbase myinit.c -mtls-dialect=gnu -auxbase myinit -version -o /tmp/ccZNNlzj.sGNU C (GCC) version 4.7.2 20121105 (Red Hat 4.7.2-2.aa.20121114svn) (arm-linux-gnueabi) compiled by GNU C version 4.4.6 20120305 (Red Hat 4.4.6-4), GMP version 4.3.1, MPFR version 2.4.1, MPC version 0.8GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072ignoring nonexistent directory "/usr/lib/gcc/arm-linux-gnueabi/4.7.2/../../../../arm-linux-gnueabi/sys-include"ignoring nonexistent directory "/usr/lib/gcc/arm-linux-gnueabi/4.7.2/../../../../arm-linux-gnueabi/include"#include "..." search starts here:#include <...> search starts here: /usr/lib/gcc/arm-linux-gnueabi/4.7.2/include /usr/lib/gcc/arm-linux-gnueabi/4.7.2/include-fixedEnd of search list.GNU C (GCC) version 4.7.2 20121105 (Red Hat 4.7.2-2.aa.20121114svn) (arm-linux-gnueabi) compiled by GNU C version 4.4.6 20120305 (Red Hat 4.4.6-4), GMP version 4.3.1, MPFR version 2.4.1, MPC version 0.8GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072Compiler executable checksum: a19a7c6897fa348d9d5b59c718fa0648myinit.c:6:19: fatal error: stdio.h: No such file or directorycompilation terminated.
主机配置
Redhat 6,64位
答案1
小编典典看来,这里的问题是您为目标安装了编译器工具链,但没有为目标安装标准库。您需要专门为目标平台编译的标准C库。您可以在找到编译器工具链的同一位置找到一个预编译器,或者下载一个并使用目标工具链进行交叉编译。
当您拥有目标的标准C库时,请使用标志-I
(大写的i)告诉编译器在哪里可以找到头文件,并使用-L
标志告诉链接器在哪里可以找到库,例如-lc
(这是较低的-
情况L)告诉链接器与库链接。就像是
$ arm-linux-gnu-gcc -I/usr/local/target/include myinit.c -L/usr/local/target/lib -lc
Bash on cygwin:没有这样的文件或目录
commonMongo=s:/programs/mongodb/ dbpath=$commonMongo"data/" logFile=$commonMongo"log.txt" mongoprog=s:/programs/mongodb/mongodb/ mongoBin=$mongoprog"bin/" mongod=$mongoBin"mongod.exe" a=$1 if [ "$a" == "start" ];then "${mongod} --logpath ${logFile} --logappend --dbpath ${dbpath} &" elif [ "$a" == "repair" ];then "${mongod} --dbpath ${dbpath} --repair" else echo "Incorrect usage" fi
./init.sh:line 11:s:/programs/mongodb/mongodb/bin/mongod.exe –dbpath s:/ programs / mongodb / data / –repair:没有这样的文件或目录
调用打印的命令工作正常:
s:/programs/mongodb/mongodb/bin/mongod.exe –dbpath s:/ programs / mongodb / data / –repair
解决方法
cd "C:\Program Files\"
build – 致命错误:vector:没有这样的文件或目录
几乎所有页面中都包含了我的内容.
#include <jni.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <vector>
编译器能够在每个文件中找出除vector.h之外的所有其他头文件.关于我哪里出错的任何建议?
注意:文件名以.cpp结尾,我已经尝试过#include< vector.h>,#include“vector.h”
谢谢 !
解决方法
APP_STL := stlport_static
有关更多详细信息,请参阅SO上的this问题
关于normalizePath(path, winslash = "/", mustWork = TRUE) 中的错误:没有这样的文件或目录的介绍现已完结,谢谢您的耐心阅读,如果想了解更多关于/ usr / bin / env:python2:没有这样的文件或目录、arm-linux-gnu-gcc致命错误:stdio.h:没有这样的文件或目录、Bash on cygwin:没有这样的文件或目录、build – 致命错误:vector:没有这样的文件或目录的相关知识,请在本站寻找。
本文标签: