GVKun编程网logo

成功解决 gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! sta

5

如果您对成功解决gypverbensuringthatfileexists:C:\Python27\python.exegypERR!configureerrorgypERR!sta感兴趣,那么本文将

如果您对成功解决 gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! sta感兴趣,那么本文将是一篇不错的选择,我们将为您详在本文中,您将会了解到关于成功解决 gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! sta的详细内容,并且为您提供关于### Error building SqlSession. ### The error may exist in SQL Mapper Configuration ### Cause: org...、(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d、CentOS7.5 安装 Python3.7 报错:configure: error: no acceptable C compiler found in $PATH --Python3、centOS升级python2至python3过程中遇到configure: error: no acceptable C compiler found in $PATH的有价值信息。

本文目录一览:

成功解决 gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! sta

成功解决 gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! sta

解决问题

gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can''t find Python executable "F:\Program Files\Python\Python36\python.EXE", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (G:\USST\Jason niu tutor\FXTrafficSystem-web\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (G:\USST\Jason niu tutor\FXTrafficSystem-web\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at G:\USST\Jason niu tutor\FXTrafficSystem-web\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:158:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "F:\\Program Files (x86)\\node-v10.5.0\\node.exe" "G:\\USST\\Jason niu tutor\\FXTrafficSystem-web\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd G:\USST\Jason niu tutor\FXTrafficSystem-web\node_modules\node-sass
gyp ERR! node -v v10.5.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN sass-loader@6.0.6 requires a peer of webpack@^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package express is included as both a dev and production dependency.
npm WARN The package jquery is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.5.3 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.5.3 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\99386\AppData\Roaming\npm-cache\_logs\2018-07-16T13_26_26_530Z-debug.log
 

解决方法

      切记,因为我电脑上已经安装由 python3.6 了。环境要求 python2 的版本,具体为什么不用 python3,我特么也纳闷,也不太清为什么必须是 python2,python3 版本就是不行,所以,还是重新安装 python2 吧……

两种方法搞定!
T1、npm install --global --production windows-build-tools
T2、自行下载
npm install --python=python2.7     #先下载
npm config set python python2.7   #再设置环境

 

---------------------
作者:一个处女座的程序猿
来源:CSDN
原文:https://blog.csdn.net/qq_41185868/article/details/81073295
版权声明:本文为博主原创文章,转载请附上博文链接!

### Error building SqlSession. ### The error may exist in SQL Mapper Configuration ### Cause: org...

### Error building SqlSession. ### The error may exist in SQL Mapper Configuration ### Cause: org...

这是一个由粗心导致的错误,具体报错如下:

org.apache.ibatis.exceptions.PersistenceException:
### Error building SqlSession.
### The error may exist in SQL Mapper Configuration
### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: The setting aggressiveLazyLoading  is not known.  Make sure you spelled it correctly (case sensitive).
    at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
    at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:80)
    at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:64)
    at com.test.TestUser.setUp(TestUser.java:38)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: The setting aggressiveLazyLoading  is not known.  Make sure you spelled it correctly (case sensitive).
    at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:121)
    at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:99)
    at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:78)
    ... 25 more
Caused by: org.apache.ibatis.builder.BuilderException: The setting aggressiveLazyLoading  is not known.  Make sure you spelled it correctly (case sensitive).
    at org.apache.ibatis.builder.xml.XMLConfigBuilder.settingsAsProperties(XMLConfigBuilder.java:134)
    at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:107)
    ... 27 more


看一眼就知道是 xml 文件中属性值有错误,但是全都检查了一遍也没注意到错误的地方,最后在第二次检查的时候才发现是有一处多了一个空格,这也是编程习惯引发的,习惯上我会在两个属性之间加空格,而这次就是因为在敲空格时光标的位置还在属性值的引号范围内,最终导致该属性值找不到匹配项而引发错误,代码如下:

<settings>
     <setting name="lazyLoadingEnabled" value="true"/>
     <setting name="aggressiveLazyLoading " value="false"/>
</settings>

而问题就在 <setting name="aggressiveLazyLoading  "value="false"/> 的 name 属性中,将里面的空格去了问题就解决了。

(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d

(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d

(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

redis设置了保存RDB快照,最后一次保存失败后,redis强制中断持久化到磁盘的操作

修改stop-writes-on-bgsave-error为no可以继续操作

(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
127.0.0.1:6379> set name artist
(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
127.0.0.1:6379> CONFIG SET stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> set name artist
OK

CentOS7.5 安装 Python3.7 报错:configure: error: no acceptable C compiler found in $PATH --Python3

CentOS7.5 安装 Python3.7 报错:configure: error: no acceptable C compiler found in $PATH --Python3

1、问题解析

报错信息中有这样一条:configure: error: no acceptable C compiler found in $PATH 即:配置错误,在 $path 中找不到可接受的 C 编译器

2、解决方式

安装 C 编译器 gcc (GNU 编译器套件):

yum -y install gcc

3、扩展

gcc 即:GNU 编译器套件 (GNU Compiler Collection) 包括 C、C++、Objective-C、Fortran、Java、Ada Go 语言的前端,也包括了这些语言的库(如 libstdc++、libgcj 等等)。GCC 的初衷是为 GNU 操作系统专门编写的一款编译器.

 

centOS升级python2至python3过程中遇到configure: error: no acceptable C compiler found in $PATH

centOS升级python2至python3过程中遇到configure: error: no acceptable C compiler found in $PATH

今天安装了一个centos 6.9,查看默认python版本是2.6,所以准备升级,按着以前在ubuntu上的升级步骤:

(1) wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tgz

(2) tar -xzvf Python-3.3.0.tgz

(3) mkdir /usr/local/python

(4)./configure --prefix=/usr/local/python3

在第四步出现了一个提示:

提示:configure: error: no acceptable C compiler found in $PATH

原来是缺少C编译器,需要安装GCC套件,于是采用如下命令安装,

(5) yum -y install gcc

顺利下载安装成功,重复操作第四步命令:./configure --prefix=/usr/local/python3 顺利配置成功

(6) make

make install

(7)mv /usr/bin/python /usr/bin/python_old2

(8)ln -s /usr/local/python3/bin/python3/usr/bin/python

关于成功解决 gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! sta的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于### Error building SqlSession. ### The error may exist in SQL Mapper Configuration ### Cause: org...、(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d、CentOS7.5 安装 Python3.7 报错:configure: error: no acceptable C compiler found in $PATH --Python3、centOS升级python2至python3过程中遇到configure: error: no acceptable C compiler found in $PATH的相关信息,请在本站寻找。

本文标签: