GVKun编程网logo

ARM64平台编译stream、netperf出错解决办法 解决办法:指定编译平台为alpha [root@localhost netperf-2.6.0]# ./configure –bui...

17

最近很多小伙伴都在问ARM64平台编译stream、netperf出错解决办法解决办法:指定编译平台为alpha[root@localhostnetperf-2.6.0]#./configure–bu

最近很多小伙伴都在问ARM64平台编译stream、netperf出错解决办法 解决办法:指定编译平台为alpha [root@localhost netperf-2.6.0]# ./configure –bui...这两个问题,那么本篇文章就来给大家详细解答一下,同时本文还将给你拓展"curl: (56) Recv failure: Connection reset by peer" after "curl --unix-socket /run/gunicorn.sock localhost"、2003-Can''t connect to MySQL server on ''localhost''(10061)的解决办法、Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099、can‘t connect to mysql server on localhost解决办法。 net start mysql——无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动。等相关知识,下面开始了哦!

本文目录一览:

ARM64平台编译stream、netperf出错解决办法 解决办法:指定编译平台为alpha [root@localhost netperf-2.6.0]# ./configure –bui...

ARM64平台编译stream、netperf出错解决办法 解决办法:指定编译平台为alpha [root@localhost netperf-2.6.0]# ./configure –bui...

ARM64平台编译stream、netperf出错解决办法

http://ilinuxkernel.com/?p=1738

 

stream编译出错信息:

[root@localhost stream]# make

gcc -O2 -DSTREAM_ARRAY_SIZE=1000000000 stream.c -o stream

/tmp/ccCGEF5F.o: In function `checkSTREAMresults’:

stream.c:(.text+0x144): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss’

stream.c:(.text+0x148): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss’

/tmp/ccCGEF5F.o: In function `main’:

stream.c:(.text.startup+0x20): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss’

stream.c:(.text.startup+0x3c): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss’

stream.c:(.text.startup+0x3ec): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss’

collect2: error: ld returned 1 exit status

Makefile:5: recipe for target ‘stream’ failed

make: *** [stream] Error 1

[root@localhost stream]#

解决办法:加上-mcmodel=large编译选项

[root@localhost stream]# ls

Makefile stream.c

[root@localhost stream]# cat Makefile

CC = gcc

CFLAGS= -O2 -mcmodel=large

all: stream stream_omp

stream: stream.c

$(CC) $(CFLAGS) -DSTREAM_ARRAY_SIZE=1000000000 stream.c -o stream

stream_omp: stream.c

$(CC) $(CFLAGS) -fopenmp -DSTREAM_ARRAY_SIZE=1000000000 stream.c -o stream_omp

clean:

rm -f stream *.o .depend *.*~ stream_omp

[root@localhost stream]#

Netperf编译出错信息:

[root@localhost netperf-2.6.0]# ./configure

checking build system type… ./config.guess: unable to guess system type

This script, last modified 2005-08-03, has failed to recognize

the operating system you are using. It is advised that you

download the most up to date version of the config scripts from

http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess

and

http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub

If the version you run (./config.guess) is already up to date, please

send the following data and any information you think might be

pertinent to <config-patches@gnu.org> in order to provide the needed

information to handle your system.

config.guess timestamp = 2005-08-03

uname -m = aarch64

uname -r = 3.19.8chen

uname -s = Linux

uname -v = #7 SMP Thu Sep 10 15:58:50 UTC 2015

/usr/bin/uname -p = aarch64

/bin/uname -X =

hostinfo =

/bin/universe =

/usr/bin/arch -k =

/bin/arch = aarch64

/usr/bin/oslevel =

/usr/convex/getsysinfo =

UNAME_MACHINE = aarch64

UNAME_RELEASE = 3.19.8chen

UNAME_SYSTEM = Linux

UNAME_VERSION = #7 SMP Thu Sep 10 15:58:50 UTC 2015

configure: error: cannot guess build type; you must specify one

[root@localhost netperf-2.6.0]#

解决办法:指定编译平台为alpha

[root@localhost netperf-2.6.0]# ./configure –build=alpha

"curl: (56) Recv failure: Connection reset by peer" after "curl --unix-socket /run/gunicorn.sock localhost"

如何解决"curl: (56) Recv failure: Connection reset by peer" after "curl --unix-socket /run/gunicorn.sock localhost"?

我正在尝试将 django 应用程序部署到 DigitalOcean,但是当我尝试使用 curl --unix-socket /run/gunicorn.sock localhost 激活 gunicorn 时,它显示 curl: (56) Recv failure: Connection reset by peer。 我实际上是在学习由 digitalocean 制作的教程,但它没有显示如何解决此错误。我需要改变什么?

我的 /etc/systemd/system/gunicorn.service

[Unit]
Description=gunicorn daemon
Requires=gunicorn.socket
After=network.target

[Service]
User=sammy
Group=sammy
EnviromentFile=/home/sammy/mysite/env
WorkingDirectory=/home/sammy/mysite
ExecStart=/home/sammy/env/bin/gunicorn \
          --access-logfile - \
          --workers 3 \
          --bind unix:/run/gunicorn.sock \
          mysite/locallibrary.wsgi:application

[Install]
WantedBy=multi-user.target

我的 /etc/systemd/system/gunicorn.socket

[Unit]
Description=gunicorn socket

[Socket]
ListenStream=/run/gunicorn.sock

[Install]
WantedBy=sockets.target

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

2003-Can''t connect to MySQL server on ''localhost''(10061)的解决办法

2003-Can''t connect to MySQL server on ''localhost''(10061)的解决办法

今天早晨起来,突然发现数据库连接不上了,我去。。吓得我不轻

然后赶紧上网搜索,寻找解决办法,大都是没有连接数据库,后来发现我确实是没有连接,

但连接上后,还是没有解决问题,后来通过其他方法解决的,先写常规解决方法

 

 2003-Can''t connect to MySQL server on ''localhost''(10061)

出现错误的原因没有连上数据库

解决办法

1.win+R 输入 services.msc  找到 MySQL数据库 右击 启动

 

 2.以管理员身份打开dos命令窗口(cmd命令)

输入 net start mysql   连接数据库

一定记得是以管理员身份运行,要不然会出现

 

 

而我今天通过这两步都没能解决,最后是在网上查到,

在dos命令窗口输入netsh winsock reset

然后电脑重启,解决的问题 

上网查了一下,发现这个命令是重置网络命令,虽然不知道因为什么,但还是感谢大神

 

Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099

Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099

Application Server was not connected before run configuration stop, reason:

        Unable to ping server at localhost:1099

在utuntu中使用IDEA启动tomcat,报错,更改/etc/hosts也没用,更改jmx port也没用,请问这个问题怎么解决!

can‘t connect to mysql server on localhost解决办法。 net start mysql——无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动。

can‘t connect to mysql server on localhost解决办法。 net start mysql——无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动。

can't connect to MysqL server on localhost解决办法如下:

1、首先检查MysqL 服务是否启动,如果没有启动,则要启动这个服务;

有时候安装MysqL后使用MySQL命令时报错 Can't connect to MysqL server on localhost (10061),或者用net start MysqL 时报服务名无效,一般是因为MysqL服务没有启动。所以第一步应该是检查服务是否启动。

2、以管理身份运行cmd.exe

一定以管理员身份运行,否则会出现其他报错。

2.1切换到MysqL安装目录下的bin文件夹,命令行运行"MysqLd --install"。

2.2 使用“net start MysqL”成功启动msyql,一般就可以正常启动MysqL了。

3、若出现报错 ‘无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动。’ 

3.1、输入MysqLd -nt-remove,注意有空格。

3.2、再次输入MysqLd -nt-remove,查看MysqL服务是否被移除。

3.3、输入MysqLd -nt-install,重新安装。

3.4、输入net start MysqL,再次启动MysqL

 

 

 

 

关于ARM64平台编译stream、netperf出错解决办法 解决办法:指定编译平台为alpha [root@localhost netperf-2.6.0]# ./configure –bui...的介绍现已完结,谢谢您的耐心阅读,如果想了解更多关于"curl: (56) Recv failure: Connection reset by peer" after "curl --unix-socket /run/gunicorn.sock localhost"、2003-Can''t connect to MySQL server on ''localhost''(10061)的解决办法、Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099、can‘t connect to mysql server on localhost解决办法。 net start mysql——无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动。的相关知识,请在本站寻找。

本文标签: