sys/sysinfo.h: No such file or directory --> MACOSX 10.6.4


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users sys/sysinfo.h: No such file or directory --> MACOSX 10.6.4
# 1  
Old 08-13-2010
sys/sysinfo.h: No such file or directory --> MACOSX 10.6.4

I need a real help to compile a small program which compiles fine with g++ in Linux machines. However I need to compile-it in my machine with g++. I have this problem and I dont know how to solve it: sys/sysinfo.h: No such file or directory could someone please help me? Thanks
# 2  
Old 08-13-2010
From man sysinfo:

Code:
SYSINFO(2)                 Linux Programmer's Manual                SYSINFO(2)



NAME
       sysinfo - returns information on overall system statistics

SYNOPSIS
       #include <sys/sysinfo.h>

       int sysinfo(struct sysinfo *info);

DESCRIPTION
...

CONFORMING TO
       This function is Linux-specific, and should not  be  used  in  programs
       intended to be portable.

This header and its contents are linux-specific. You're not going to be able to make it compile without rewriting or ripping out whatever parts use it. (The programming forum here may be able to help you with that.) If you're lucky, it's not actually using sysinfo and you can comment out the errant #include.
# 3  
Old 08-15-2010
Quote:
Originally Posted by c_lady
I need a real help to compile a small program which compiles fine with g++ in Linux machines. However I need to compile-it in my machine with g++. I have this problem and I dont know how to solve it: sys/sysinfo.h: No such file or directory could someone please help me? Thanks
which program you want to run?
maybe we find it as same or similar Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sysinfo output for lvm commands

Hi folks, I have created a sysinfo script to capture the system information on daily basis which run in cron jobs. Whereas, the output saved in the file are getting disapperared after some times.. Mainly for eg: the lvm commands like pvs,lvs, vgs, lvdisplay, pvdisplay.. ... (2 Replies)
Discussion started by: gsiva
2 Replies

2. Programming

Interactive Python 3.5+ sys.stdout.write() AND sys.stderr.write() bug?

(Apologies for any typos.) OSX 10.12.3 AND Windows 10. This is for the serious Python experts on at least 3.5.x and above... In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly. Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)
Discussion started by: wisecracker
2 Replies

3. OS X (Apple)

vim and MacVim in MacOSX

Hi guys, I just installed a plugin (script) at my MacVim -> MacVim.app/Contents/Resources etc. and the plug is installed! However when I load other files with vim which came with the MacOSX (by default) the plugin is not installed ... since I did not installed in that directory! PLEASE let me... (3 Replies)
Discussion started by: c_lady
3 Replies

4. Solaris

Name file with sys date

Hi, I would like to rename log files with sys date as extension. eg xyz.log --> xyz.log.01-21-2011 How do I do this? Any hints? (1 Reply)
Discussion started by: neil.k
1 Replies

5. OS X (Apple)

sys/sysinfo.h: No such file or directory --> MACOSX 10.6.4

duplicate thread I need a real help to compile a small program which compiles fine with g++ in Linux machines. However I need to compile-it in my machine with g++. I have this problem and I dont know how to solve it: sys/sysinfo.h: No such file or directory could someone please help me? Thanks (0 Replies)
Discussion started by: c_lady
0 Replies

6. Solaris

su: No shell/No directory! if sys is added to a users secondary group

Hi, When I include a user to the secondary group "sys" GID=3 in Solaris 9 OS I'm not able to login. I get these error. The user home directory and the shell exists. Is this because of any security hardening. # su - agent No directory! # su agent su: No shell # grep taddm /etc/passwd... (14 Replies)
Discussion started by: agent001
14 Replies

7. UNIX for Advanced & Expert Users

sysinfo replacement?

What is everyone using as a multi-platform replacement for "sysinfo" (licensing required nowadays)? (3 Replies)
Discussion started by: kickslop
3 Replies

8. UNIX for Advanced & Expert Users

How to fix the server to show SysInfo

Can someone help me in fixing this issue.. this is the result iam getting now.. ---------------------------------------------- Index of /SysInfo Parent Directory hndspdb1.html hndspdb2.html hndspdb3.html hndspdb4.html hndssdb1.html hndssdb2.html... (1 Reply)
Discussion started by: kjamsheed
1 Replies

9. Solaris

sysinfo command not found

Hi, I refer to this treat. I got the same objective, to capture serial number. when I type command sysinfo not found. but my system have 'man -s 2 sysinfo'. How to make sysinfo command work. FYI i'm using Solaris 10 11/06. (1 Reply)
Discussion started by: apip
1 Replies

10. OS X (Apple)

Root user in MacOSX

Hello, Do you guys know how does the root user works in this system? from the terminal i try to su to root, and i thought the password was the same as the macosx password, at the /etc/passwd file the passwd field appears as *, so it's system bussines only, is there a way to become root? i... (6 Replies)
Discussion started by: sx3v1l_1n51de
6 Replies
Login or Register to Ask a Question