Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Compiling UNIX software packages Question Post 302319568 by Corona688 on Monday 25th of May 2009 06:28:08 PM
Old 05-25-2009
gave what error?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

compiling software

I am new to unix so please forgive ignorance. I am running openbsd-2.9 and need some help. All the software I run was added via the package system openbsd has. There have been times when I need an app. But it was not in the openbsd ports and or packages system. I usually just wait for it to show up... (3 Replies)
Discussion started by: Blunt_Killer
3 Replies

2. UNIX for Advanced & Expert Users

Compiling Software

I have a problem, my mate built me a little home server using Unix and after he set everything up he deleted the main compiler so i wouldnt be able to Install/Compile any software... And now i wanted to Install a compiler and i have to compile it... thats like installing winzip from a zip... (3 Replies)
Discussion started by: l22
3 Replies

3. Solaris

question about JAVA compiling ..

Hi , I don't know if this is the right place to post my question because it relates to JAVA . I am beginner of JAVA , using a tutorial as reference I am trying to run a simple program in JAVA env. I have installed JDSK kit from java.sun.com but when I tried to run a program from the DOS prompt , I... (7 Replies)
Discussion started by: ANAMIKA56
7 Replies

4. UNIX for Dummies Questions & Answers

Question? unix software

whats the difference between unix & linux? code? can anyone recommend a company that release unix software that operates with windows 98 & XP for rookies? please list a link... thanks for your time (1 Reply)
Discussion started by: Matthews
1 Replies

5. Programming

Question about compiling (noob)

I'm just getting started to lean C and I'm using Ubuntu today I found a tutorial at this site: http://einstein.drexel.edu/courses/CompPhys/General/C_basics/c_tutorial.html and I got an error after compiling the fist code: #include < stdio.h> void main() { printf("\nHello World\n"); } ... (9 Replies)
Discussion started by: arya6000
9 Replies

6. Solaris

how to find the software packages and root directories

Hi all, i have one requirement to audit the software packages list in unix server. For this the i go through #pkginfo command.But there are lot of packages. i get confused how to find the software packages and root directories paths. Please let me know whether i am going correct way... (1 Reply)
Discussion started by: krishna176
1 Replies

7. UNIX for Dummies Questions & Answers

Question about excutable software in Unix

I am using SCO OpenServer 5.0 now, and have the old software as database (similar with MySQL) to store all data. I want to know that how can I read those data in the file. For example, I have file named OE.USECD, which is data file when I use the software to store my data to database. it's not... (5 Replies)
Discussion started by: wendyz
5 Replies

8. Solaris

best way to identify non packages software

what is the best way to identify non-packaged software installed on solaris systems? also after identifying the software is there a way to add some sort of package entry that will display the software even though it is not a package? (3 Replies)
Discussion started by: BronzeBack
3 Replies

9. UNIX for Dummies Questions & Answers

Updating software packages

Hi, I noticed that my programs are not up-to-date, when I go to the official web site of eg. transmission bittorent client I see the newest version is 2.4 and when I check my version , it's 2.0. What do I need to do to update it? I thought it's gonna be updated automatically but nothing. I ran... (2 Replies)
Discussion started by: zdorian
2 Replies

10. UNIX Benchmarks

error compiling bm software under Solaris 10

anyone tried it , under Solaris 10 using make (part of SUNWsprot) and gcc 4.6 compiler.. got an error complaining about the Makefile script syntax... I don't think that's compatible at all... (2 Replies)
Discussion started by: ppchu99
2 Replies
GETHOSTNAME(2)							System Calls Manual						    GETHOSTNAME(2)

NAME
gethostname, sethostname - get/set name of current host SYNOPSIS
gethostname(name, namelen) char *name; int namelen; sethostname(name, namelen) char *name; int namelen; DESCRIPTION
Gethostname returns the standard host name for the current processor, as previously set by sethostname. The parameter namelen specifies the size of the name array. The returned name is null-terminated unless insufficient space is provided. Sethostname sets the name of the host machine to be name, which has length namelen. This call is restricted to the super-user and is nor- mally used only when the system is bootstrapped. RETURN VALUE
If the call succeeds a value of 0 is returned. If the call fails, then a value of -1 is returned and an error code is placed in the global location errno. ERRORS
The following errors may be returned by these calls: [EFAULT] The name or namelen parameter gave an invalid address. [EPERM] The caller tried to set the hostname and was not the super-user. SEE ALSO
gethostid(2) BUGS
Host names are limited to MAXHOSTNAMELEN (from <sys/param.h>) characters, currently 64. 4.2 Berkeley Distribution May 22, 1986 GETHOSTNAME(2)
All times are GMT -4. The time now is 03:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy