In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This post is about what to do if you get make: *** [pgms/ubgears] Error 1 when installing unixbench. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
I. preparations
1. Log in as root first.
2. GCC support is required to run Unixbeanch. Before installing Unixbeanch, GCC needs to be installed. In Debian, execute the following command directly:
The code is as follows:
apg-get install gcc
II. Download Unixbeanch
Go to Unixbeanch's Google Code page and download the latest version, in this case tar.gz.
Download page address:
http://code.google.com/p/byte-unixbench/downloads/list
After entering the page, click on a version of the link, you can enter the download interface, copy the download address, execute the wget command to download, as follows (the following unixbench-5.1.2.tar.gz for example):
The code is as follows:
wget http://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gz
Once the download is complete, extract it by tar:
The code is as follows:
tar zxvf unixbench-5.1.2.tar.gz
III. Run Unixbeanch
After decompression is complete, get unixbench-5.1.2 directory under current directory. Get into it.
The code is as follows:
cd unixbench-5.1.2
Then run:
The code is as follows:
./ Run
If nothing else, you can see Unixbench splash screen and related information, and then wait for it to complete.
IV. unexpected situations
If implemented.../ After the Run command, the following error occurs:
The code is as follows:
gcc -o ./ pgms/ubgears -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./ src/ubgears.c -lGL -lXext -lX11
./ src/ubgears.c:51:19: error: GL/gl.h: No such file or directory
./ src/ubgears.c:52:20: error: GL/glx.h: No such file or directory
./ src/ubgears.c:129: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'view_rotx'
... omitted
./ src/ubgears.c:632: error: 'GL_RENDERER' undeclared (first use in this function)
./ src/ubgears.c:633: error: 'GL_VERSION' undeclared (first use in this function)
./ src/ubgears.c:634: error: 'GL_VENDOR' undeclared (first use in this function)
./ src/ubgears.c:635: error: 'GL_EXTENSIONS' undeclared (first use in this function)
./ src/ubgears.c:643: warning: implicit declaration of function 'glXDestroyContext'
make: *** [pgms/ubgears] Error 1
**********************************************
Run: "make all" failed; aborting
Basically, it is caused by installing two graphics libraries less. In Debian, execute the following command to install them:
The code is as follows:
apt-get install libxext-dev libgl1-mesa-dev
In addition, if the children's shoes using centos unfortunately enter this, you can execute the following command to solve this problem:
The code is as follows:
yum install -y SDL-devel mesa-libGL-devel
Thank you for reading! About "if install unixbench make: *** [pgms/ubgears] Error 1 error how to do" This article is shared here, I hope the above content can be of some help to everyone, so that we can learn more knowledge, if you think the article is good, you can share it to let more people see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.