Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if make: * [pgms/ubgears] Error 1 error occurs when installing unixbench

Shulou Source: shulou.com Published: 2022-06-01 04:53:39 10月04日 Update

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!

Tags: Code command error version page run what to do content address more directory article good practical unexpected no accident and then unfortunately two information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Huawei MariaDB Shulou Information Shulou Tech Info