Giter Site home page Giter Site logo

Comments (4)

sunner avatar sunner commented on May 24, 2024

You are using 64bit system. So you should install libc 32bit library for your system. It is called libc6-dev-i386 in debian. Perhaps CentOS uses similar name.

from moodle-local_onlinejudge.

zgjava avatar zgjava commented on May 24, 2024

yum install libc-client-devel

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: centos.ustc.edu.cn
  • extras: centos.ustc.edu.cn
  • updates: centos.ustc.edu.cn
    Zend | 951 B 00:00
    Zend_noarch | 951 B 00:00
    base | 1.1 kB 00:00
    extras | 2.1 kB 00:00
    updates | 1.9 kB 00:00
    Setting up Install Process
    Resolving Dependencies
    There are unfinished transactions remaining. You might consider running yum-comp lete-transaction first to finish them.
    The program yum-complete-transaction is found in the yum-utils package.
    --> Running transaction check
    ---> Package libc-client-devel.i386 0:2004g-2.2.1 set to be updated
    --> Processing Dependency: libc-client = 2004g-2.2.1 for package: libc-client-de vel
    --> Processing Dependency: libc-client.so.1 for package: libc-client-devel
    ---> Package libc-client-devel.x86_64 0:2004g-2.2.1 set to be updated
    --> Running transaction check
    ---> Package libc-client.i386 0:2004g-2.2.1 set to be updated
    ---> Package libc-client.x86_64 0:2004g-2.2.1 set to be updated
    --> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size

Installing:
libc-client-devel i386 2004g-2.2.1 base 696 k
libc-client-devel x86_64 2004g-2.2.1 base 712 k
Installing for dependencies:
libc-client i386 2004g-2.2.1 base 516 k
libc-client x86_64 2004g-2.2.1 base 515 k

Transaction Summary

Install 4 Package(s)
Upgrade 0 Package(s)

Total download size: 2.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): libc-client-2004g-2.2.1.x86_64.rpm | 515 kB 00:00
(2/4): libc-client-2004g-2.2.1.i386.rpm | 516 kB 00:00
(3/4): libc-client-devel-2004g-2.2.1.i386.rpm | 696 kB 00:00

(4/4): libc-client-devel-2004g-2.2.1.x86_64.rpm | 712 kB 00:00

Total 2.7 MB/s | 2.4 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libc-client 1/4
/sbin/ldconfig: libraries libncurses.so.5.5 and libncurses.so.5.9 in directory / usr/lib have same soname but different type.
/sbin/ldconfig: libraries libpanel.so.5.5 and libpanel.so.5.9 in directory /usr/ lib have same soname but different type.
Installing : libc-client 2/4
/sbin/ldconfig: libraries libncurses.so.5.5 and libncurses.so.5.9 in directory / usr/lib have same soname but different type.
/sbin/ldconfig: libraries libpanel.so.5.5 and libpanel.so.5.9 in directory /usr/ lib have same soname but different type.
Installing : libc-client-devel 3/4
Installing : libc-client-devel 4/4

Installed:
libc-client-devel.i386 0:2004g-2.2.1 libc-client-devel.x86_64 0:2004g-2.2.1

Dependency Installed:
libc-client.i386 0:2004g-2.2.1 libc-client.x86_64 0:2004g-2.2.1

Complete!
[root@localhost sandbox]# cd sand
[root@localhost sand]# make
cc -m32 -Wall -ansi -std=gnu99 -g0 -O3 --static -o stdin_test testcase/stdin.c
在包含自 /usr/include/features.h:352 的文件中,
从 /usr/include/stdio.h:28,
从 testcase/stdin.c:1:
/usr/include/gnu/stubs.h:7:27: 错误:gnu/stubs-32.h:没有那个文件或目录
make: *** [stdin_test] 错误 1

why?

from moodle-local_onlinejudge.

sunner avatar sunner commented on May 24, 2024

From some search works, the package probably is glibc-devel.i386
Ref: http://www.cyberciti.biz/faq/x86_64-linux-error-gnustub-32h-missing-error-and-solution/

from moodle-local_onlinejudge.

zgjava avatar zgjava commented on May 24, 2024

Thank you very much!

from moodle-local_onlinejudge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.