Author Archives: Robins

Unable to install SQL Server (setup.exe), VS Shell installation has failed with exit code 1638.

solution

problem may be that there is an updated version of Visual C ++ Redistributable that SQL Server is trying to install, for example, from Visual Studio 2017. If you don’t need the latest C ++ Redistributable component, one way to resolve this problem is to add or remove programs and undistribute all references to Visual C ++ 2017 Redistributable. After this, the SQL Server installation should continue without error.

The problem is likely that there’s a newer version of the Visual C++ Redistributable than SQL Server is trying to install, e.g., from Visual Studio 2017. So another way to address this, if you don’t need the latest C++ redistributable, is to go to Add or Remove Programs and uninstall all references to Visual C++ 2017 Redistributable. After this, the SQL Server installation should proceed without errors.

About Xcode command phasescriptexecution failed with a nonzero exit code solution

1. Problem description

USES Xcode for code writing, and the following error has been reported during the compilation process when the new project code is pulled down during project development.

Command PhaseScriptExecution failed with a nonzero exit code

after searching on the Internet, most of the solutions given on the Internet were as follows. However, after I tried, the problem was not solved, but more mistakes were reported. Therefore, I consulted my tutor again, and finally got the solution.

encountered this bug hint when running a project, which could not be compiled. This is actually a bug caused by Xcode10. Solution: Select File -&gt in Xcode menu bar; Workspace Setting -> Choose Legacy Build System to rerun.

The primary cause of

is that the workspace is full, leading to code compilation errors, and there are roughly two ways to solve this problem.

(1) enter the code working cache folder of Xcode to clean manually ( is error-prone, is not recommended)

(2) use only the cleaning method provided by Xcode directly. Xcode will automatically link the working file after cleaning the workspace ( will not make mistakes, is recommended)

because the second method is easier to work with and less likely to go wrong, we use this method directly in the solution.

ii. Solution

1. First in Product -> Scheme selects the main code module for the current project

2. Select Product -> Clean Build Folder Clean workspace

3. Recompile the project code after

Job for docker.service failed because the control process exited with error code. See systemctl sta

Dock worker startup error reported as:
[root@iz8vb4rhbik3h93v48ztfvz dockworker]# systemctl restart dockworker. Service
docker job. The service failed because the control process exited with an error code. See “systemctl state docker”. Services” and “journalctl -xe” for more information.
[root@iz8vb4rhbik3h93v48ztfvz docker]# systemctl stop docker
[root@iz8vb4rhbik3h93v48ztfvz docker]# systemctl status docker
● docker load:load(/usr/lib/systemd/system/ Docker .service; enable;
Activation:failed(result:startup limit) from Mon 2020-06-15 23:52:04 CST;
Docs: https://docs.docker.com>
Process: 9466 ExecStart=/usr/bin/dockerd -H fd://–containerd=/run/containerd/containerd. sock (code=exit, status=1/FAILURE)
Main PID: 9466 (code=exit, status=1/FAILURE)</p

Jun 15 23:52:02 iz8vb4rhbik3h93v48ztfvz systemd[1]: unit docker application container engine failed to start.
Jun 15 23:52:02 iz8vb4rhbik3h93v48ztfvz systemd[1]: Unit docker service enters failed state.
Jun 15 23:52:02 iz8vb4rhbik3h93v48ztfvz systemd[1]: docker service failed.
Jun 15 23:52:04 iz8vb4rhbik3h93v48ztfvz systemd[1]: docker service delay has expired, a restart is planned.
Jun 15 23:52:04 iz8vb4rhbik3h93v48ztfvz systemd: Docker application container engine stopped.
Jun 15 23:52:04 iz8vb4rhbik3h93v48ztfvz systemd[1]: docker startup request repeats too fast. iz8vb4rhbik3h93v48ztfvz systemd[1]: docker application container engine failed to start.
Jun 15 23:52:04 iz8vb4rhbik3h93v48ztfvz systemd[1]: unit docker. the service entered a failed state.
Jun 15 23:52:04 iz8vb4rhbik3h93v48ztfvz systemd[1]: docker service failed. Start docker.
Job to docker. Service failed because it tried to start the service too many times. See “systemctl state docker”. Services” and “journalctl -xe” for more information.
To force startup use “systemctl reset-failed docker”. Followed by “systemctl reset-failed docker”. Service” is now enabled.

The reason is that the daemon.json file has been modified and needs to be modified again.

After modification by mv command, the dock worker will start normally.

 

[root@iz8vb4rhbik3h93v48ztfvz docker]# mv daemon.json daemon.conf
[root@iz8vb4rhbik3h93v48ztfvz docker]# systemctl start docker
[root@iz8vb4rhbik3h93v48ztfvz docker]# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2020-06-15 23:53:59 CST; 4s ago
     Docs: https://docs.docker.com
 Main PID: 9510 (dockerd)
    Tasks: 10
   Memory: 50.6M
   CGroup: /system.slice/docker.service
           └─9510 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

Jun 15 23:53:58 iz8vb4rhbik3h93v48ztfvz dockerd[9510]: time="2020-06-15T23:53:58.554833629+08:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/contain...module=grpc
Jun 15 23:53:58 iz8vb4rhbik3h93v48ztfvz dockerd[9510]: time="2020-06-15T23:53:58.554857738+08:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Jun 15 23:53:58 iz8vb4rhbik3h93v48ztfvz dockerd[9510]: time="2020-06-15T23:53:58.570959343+08:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
Jun 15 23:53:58 iz8vb4rhbik3h93v48ztfvz dockerd[9510]: time="2020-06-15T23:53:58.898909596+08:00" level=info msg="Loading containers: start."
Jun 15 23:53:59 iz8vb4rhbik3h93v48ztfvz dockerd[9510]: time="2020-06-15T23:53:59.152882347+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17....IP address"
Jun 15 23:53:59 iz8vb4rhbik3h93v48ztfvz dockerd[9510]: time="2020-06-15T23:53:59.245906513+08:00" level=info msg="Loading containers: done."
Jun 15 23:53:59 iz8vb4rhbik3h93v48ztfvz dockerd[9510]: time="2020-06-15T23:53:59.283200393+08:00" level=info msg="Docker daemon" commit=afacb8b graphdriver(s)=overlay2 version=19.03.8
Jun 15 23:53:59 iz8vb4rhbik3h93v48ztfvz dockerd[9510]: time="2020-06-15T23:53:59.289824517+08:00" level=info msg="Daemon has completed initialization"
Jun 15 23:53:59 iz8vb4rhbik3h93v48ztfvz dockerd[9510]: time="2020-06-15T23:53:59.320315408+08:00" level=info msg="API listen on /var/run/docker.sock"
Jun 15 23:53:59 iz8vb4rhbik3h93v48ztfvz systemd[1]: Started Docker Application Container Engine.
Hint: Some lines were ellipsized, use -l to show in full.

</ p>
</ div>

error:X11 initialization Failed solutions

tatus 1:Autolaunch error:X11 initialization failed.\n (sudo gedit..) Solution:

# vi /etc/sudoers

press a to enter edit mode

Defaults env_keep=”DISPLAY XAUTHORITY”

press ESC to exit edit mode

:wq (save and exit)

the article from Linux 51 cto blog, blog links to the original http://blog.51cto.com/yangzhiming/1396721 for reprint please contact our author


yangzhimingg

NPM warn optional skipping optional dependency: 1 [email protected] (node_ modules\fsevents):

when executing NPM install may report the following error:

NPM WARN optional Tours DEPENDENCY: fsevents@node_modules \fsevents> :
NPM WARN notsup Tours optional Tours DEPENDENCY: Unsupported platform for [email protected]: wanted {“os”:”darwin”,”arch”:”any”} (current: {“os”:”win32″,”arch”:”x64″})

query found that fsevent is MAC system, used in win or Linux, so there will be a warning, ignore it. The function of FSEvent is to detect the change of file directory, can record the illegal operation of the malware, obtain the full path of the malware, delete and modify date.

Mac – build. Net development environment

1。安装openssl

brew update
brew install openssl

2. Install.net core SDK

sudo install_name_tool -add_rpath /usr/local/opt/openssl/lib /usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.2/System.Security.Cryptography.Native.dylib 

3. Go to install vs code
install c# extension: open vs code, press command+p and enter

ext install csharp

Test

4.

mkdir HelloWorld
cd HelloWorld
dotnet  new
dotnet restore
dotnet run

effect

Project HelloWorld (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing
Compiling HelloWorld for .NETCoreApp,Version=v1.0

Compilation succeeded.
    0 Warning(s)
    0 Error(s)

Time elapsed 00:00:01.4283528


Hello World!

5. Open the newly created HelloWorld with vs code, install the plug-in according to the prompts, the final effect is

Updating C# dependencies...
Platform: darwin, x86_64

Downloading package 'OmniSharp for OSX' (24653 KB) .................... Done!
Downloading package '.NET Core Debugger (macOS/x64)' (43967 KB) .................... Done!

Installing package 'OmniSharp for OSX'
Installing package '.NET Core Debugger (macOS/x64)'

Finished
Failed to spawn 'dotnet --info'
Warning: project.json is no longer a supported project format for .NET Core applications. Update to the latest version of .NET Core (https://aka.ms/netcoredownload) and use 'dotnet migrate' to upgrade your project (see https://aka.ms/netcoremigrate for details).

resources http://www.cnblogs.com/gk0124/p/6066857.html

http://blog.csdn.net/x_studying/article/details/52730913

To solve the problem of loading rjava in installation of xlsx

[run target]
import XLSX file,
install. Packages (” rJava “)
install. Packages (” xlsxjars “)
install. Packages (” XLSXX “)
install

[error prompt]

library (XLSX) Error: package or namespace load failed for ‘XLSX:
loadNamespace counting’ rJava ‘in his (). When the onLoad fails, the detailed content:
call: inDL (x, as the logical (local), as the logical (now),…).
error: unable to load Shared object “d:/Program Files/R/R – 3.5.0/library/rJava/libs/x64/rJava DLL: ‘
LoadLibrary failure: % 1 is not a valid Win32 application.

solution 】 【 1, Java on the website to download the Windows version of the Java software

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

download download time attention to agree with statement after good Java installation
note:
if R is 64-bit, the installed Java must also be 64-bit and placed in C:\Program Files…
if you install C:\Program Files (x86), the system will continue to report the following error

2, download the Java, and install it, Under CMD, type
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_171
Path=C:\Program Files\Java\jdk1.8.0_171\bin
you can also manually set


3, finally re-run
library(rJava)
library(xlsxjars)
library(XLSX)
XLSX package imported successfully

Module build failed: SyntaxError: Unexpected token

vue router loading on demand times error

{
	path: '/product',
	component: () => import('./pages/product'),
},

error: Module build failed: SyntaxError: Unexpected token

solution:

1. In the beginning, I was in a hurry to write something, but instead of studying it carefully, I changed it to another way:
{
	path: '/product',
	component:resolve => require(['./pages/product'], resolve),
},

found no error and ran successfully. Later baidu checked that the original Babel needs to be added with syntax-dynamic-import plug-in, so that the Babel can correctly parse the syntax.

2. Download the plug-in
npm install babel-plugin-syntax-dynamic-import --save-dev
3. Then modify the loader configuration

in webpack

{
	test: /\.js$/,
	loader:'babel-loader',
	options:{
		plugins:['syntax-dynamic-import']
	},
},

so far, problem solved

my personal blog, drop by sometime

Failed to build gem native extension encountered while installing sass

error message

sudo gem install sass encountered the following error message

Building native extensions. This could take a while...
ERROR:  Error installing sass:
    ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/ffi-1.11.1/ext/ffi_c
/usr/bin/ruby2.5 -r ./siteconf20190522-24821-9c6o4.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/ffi-1.11.1 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.11.1/gem_make.out

solution

looked at some of the solutions on the web, and finally solved by installing the full ruby.

: sudo apt install ruby

use the command sudo apt install ruby-full to install ruby, and then use the command sudo gem install sass to successfully install sass.

diff:

Replace the gem with the installation source

//1.删除原gem源
gem sources --remove https://rubygems.org/

//2.添加国内镜像
gem source -a https://gems.ruby-china.com

//3.打印是否替换成功
gem sources -l

//4.更换成功后打印如下
*** CURRENT SOURCES ***
 https://gems.ruby-china.com

【Oracle】IMP-00010: not a valid export file, header failed verification

someone else gave an Oracle file, the result was found when importing the problem, the error was reported as follows:

IMP-00010: not a valid export file, header failed verification

after searching on the Internet, I found that it was caused by the version database problem. I opened the DMP file with UE editor and saw the first line as follows:

the figure above indicates that the database version is: Oracle12c version

use SQL:select * from v$version to query the current database version

we modified the TEXPORT:V12.02 of the DMP file to V11.02 and imported it again to solve the problem perfectly.

reproduced in: https://www.cnblogs.com/OliverQin/p/9565569.html