- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- compiling problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 08:49 AM
01-31-2003 08:49 AM
i have a problem when i install any software like imap or qpopper , i walk with the procedure
but when i do make for compiling
error occured attached with this message can any one help me step by step how can i finish compiling with no error codes
thank you all
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 09:02 AM
01-31-2003 09:02 AM
Re: compiling problem
http://gatekeep.cs.utah.edu/hppd/hpux/.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 09:02 AM
01-31-2003 09:02 AM
Re: compiling problem
If you get egcs, make sure to get the bin-utils with it, and any other pre-reqs you see!
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 09:15 AM
01-31-2003 09:15 AM
Re: compiling problem
i did what u said , i've installed a depot for gcc 3.2
same problem still on my terminal,
how can i check if gcc is working i've installed all the depndcies ( bison, flex, make ) so what do u suggest ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 09:21 AM
01-31-2003 09:21 AM
Re: compiling problem
should give the version info. If it does not, gcc is not in your $PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 09:25 AM
01-31-2003 09:25 AM
Re: compiling problem
sorry man , but how i can add gcc to my PATH , excuse me but can u give a step by step soluation
i'm going to be crazy
i'm nes in unix
thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 09:26 AM
01-31-2003 09:26 AM
Re: compiling problem
Do this:
Create a text file hello.c
int main(int argc, char *argv[])
{
(void) printf("Hello world. Argc = %d\n",argc);
return(0);
}
gcc hello.c
You should get an executable file. If it executes you are all set.
You then need to make sure that your application makefile calls gcc rather than cc. Most packages have a configure script that you can run toi create the makefiles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 09:36 AM
01-31-2003 09:36 AM
Re: compiling problem
setenv PATH $PATH:"/your/path/to/gcc/bin"
in (k)sh:
export PATH=$PATH:"/your/path/to/gcc/bin"
best to do this in your ~/.profile (for (k)sh) or ~/.login (for (t)csh) or - even better - add the path in /etc/PATH, so all of you get it all the time.
The sequence is important here. Commands will be found in the first path it resides.
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 09:36 AM
01-31-2003 09:36 AM
Re: compiling problem
hello.c
attached with this message
it said error in line 3 when i excute
./hello.c
be patint at me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 09:40 AM
01-31-2003 09:40 AM
Re: compiling problem
You can do this to specify an output file (with -o).
gcc hello.c -o hello
Now you should be able to execute 'hello' and get the expected output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 10:07 AM
01-31-2003 10:07 AM
Re: compiling problem
still not working
any aother way
and it is says gcc not found i've added to my PATH
i think i did not follow u withe hello.c thing
can u please be more details
where should i put hello.c and how can i excute it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 10:24 AM
01-31-2003 10:24 AM
Solutionint main()
{ printf("Hello\n"; }
# gcc -o hello hello.c
# ./hello
if you are using a (t)csh, you should use
# rehash
after you have changed your $PATH
type
# which gcc
to check if it is in your path. If it cannot be found, you get an error message like
gcc: command not found
otherwise it will show the path to gcc, like
/usr/local/bin/gcc
the first part (/usr/local/bin) should be in your $PATH. You can check that with
# echo $PATH
/bin:/usr/bin:/some/path:/usr/contrib/bin:/usr/local/bin:/opt/foo/bin
if that first part is in there, you should be able to complete the compilation as I started this post.
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 10:33 AM
01-31-2003 10:33 AM
Re: compiling problem
You should have added the paths to this file like this...
echo "PATH=/opt/egcs/bin:/opt/gnu-binutils/bin:$PATH" >>/.profile
echo "export PATH" >>/etc/profile
NOTE: MY DIRECTORIES ARE HYPOTHETICAL, MAKE SURE THEY EXIST.
If you do this then log out then back in you will be able to check to see if it's correct.
% which gcc
/opt/egcs/bin/gcc
If you can not use the which command to find gcc, then your path's are still bad.
I'd suggest you look at "Unix in a Nutshell, published by O'Reilly and Associates". It has some basic tips/trics for shells and basic unix commands.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 01:45 PM
01-31-2003 01:45 PM
Re: compiling problem
i have made what u said , everything is fine except the hello.c
gcc is running it is in my path when i run #which gcc it gives me the path
but when i excute
gcc -h hello hello.c
it is gives me
( # gcc -o hello hello.c
as: warning 2: Unknown option "--traditional-format" ignored.
as: "/var/tmp//ccVjkgzc.s", line 22: error 1052: Directive name not recognized - NSUBSPA
#
the hello.c is as the followig :
int main()
{ printf("hello\n"); }
any ideas
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 10:16 AM
02-03-2003 10:16 AM
Re: compiling problem
l1:/u/usr/merijn 101 > cat >hello.c
int main()
{ printf("hello\n"); }
l1:/u/usr/merijn 102 > which gcc
/pro/local/bin/gcc
l1:/u/usr/merijn 103 > gcc --version
gcc (GCC) 3.3 20030120 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
l1:/u/usr/merijn 104 > gcc -o hello hello.c
l1:/u/usr/merijn 105 > ./hello
hello
Exit 244
l1:/u/usr/merijn 106 > gcc -h hello hello.c
gcc: unrecognized option `-h'
/usr/ccs/bin/ld: hello: Not a valid object file (invalid magic number)
collect2: ld returned 1 exit status
Exit 1
l1:/u/usr/merijn 107 >
Note that this is gcc-3.3 prerelease, a version not (yet) available as prebuild binary.
Do you have write rights on /var/tmp?
Enjoy, have FUN! H.Merijn