Sponsored Content
Full Discussion: cc compiler problem
Operating Systems Solaris cc compiler problem Post 302375700 by ippy98 on Sunday 29th of November 2009 02:22:17 AM
Old 11-29-2009
I do have the gnu c compiler installed

/usr/local/bin/gcc

but when i try to use that one, and take out the /usr/ucb/ out of my path, it doesnt even find the gnu compiler. (yes, /usr/local/bin is in my path)

Code:
> make
cc -c   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff   -DVERSION=\"3.01\" -DXS_VERSION=\"3.01\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"   Base64.c
/bin/sh: cc: not found
make: *** [Base64.o] Error 1

so then i tried to make a symbolic link that make it look just for "cc"

and then I get:


Code:
cc -c   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff   -DVERSION=\"3.01\" -DXS_VERSION=\"3.01\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"   Base64.c
cc: unrecognized option `-KPIC'
cc: language ildoff not recognized
cc: Base64.c: linker input file unused because linking not done
rm -f blib/arch/auto/MIME/Base64/Base64.so
LD_RUN_PATH="" cc  -G Base64.o  -o blib/arch/auto/MIME/Base64/Base64.so      
cc: Base64.o: No such file or directory
cc: no input files
make: *** [blib/arch/auto/MIME/Base64/Base64.so] Error 1

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

C compiler problem

Hi all I just installed FORTE 6 c and c++ compiler after getting the 30 days trial license but after installtion the /opt/SUNWspro/bin/include dir was found empty and there is no header file..when i compile one code it is giving error include header file not found........ please give me any... (1 Reply)
Discussion started by: Prafulla
1 Replies

2. Programming

Compiler....

:confused: How to do Compiler a .so with oracle9 libs? I have my file -> oracobo.pc my .so is called by Cobol App. -> Runcobol (I don't have source). Which is the statement of cc compiler? It's Right : proc oracobo.pc cc -O -q32 -DDYNAMIC_LIBRARIES_SUPPORTED... (0 Replies)
Discussion started by: luckycs
0 Replies

3. Programming

c compiler

What can I do if my unix didn't come with cc or gcc. there must be a place to get those programs. Just not where i can find them:confused: (3 Replies)
Discussion started by: hector
3 Replies

4. Programming

C compiler

I'm new to C but eager to get started. I purchasewd beginning C by Ivor Horton and realise that I need a C compiler. I looking for the most appropriate and economical way to obtain this, any suggestions would be greatly appreciated. (5 Replies)
Discussion started by: ferret
5 Replies

5. Solaris

C compiler

Hello Everyone!!! Can i use the C shell to compile a C program ? how ? please teach me how to compile ? Thanks!!!! Giancarlo D. Jabon (1 Reply)
Discussion started by: giancarlodjabon
1 Replies

6. UNIX for Dummies Questions & Answers

xl C/C++ compiler to GCC compiler

Hi, we are converting from IBM-AIX(xl c/c++ compiler) to Linux(GCC complier). As a part of this i need to change the CFLAGS. The xl c/c++ complier CFLAGS is CFLAGS := $(CDEBUG) $(PROJECT_INCLUDE_DIRS) $(COBJECT_MODE) -qcpluscmt -qmakedep -qcheck=all \ -qalign=bit_packed $(LINT_FLAGS)... (0 Replies)
Discussion started by: pbattu1
0 Replies

7. Programming

How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries?

To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first? The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's... Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies

8. Solaris

C Compiler

Greetings, :rolleyes: :o :confused: I am working on Solaris 8. I have a few questions: 1. How do I determine if I have the CC compiler? I know it isn't in my $PATH, so how do I find it? 2. How do you install wget? I have read the INSTALL file, but I am not familar with the switches,... (25 Replies)
Discussion started by: Roam
25 Replies

9. UNIX for Dummies Questions & Answers

cc compiler and gcc compiler

hi, can we install gcc compiler in unix based OS(sun solar,IBM AIX,HP,etc) and also can we install sun cc compiler in AIX environment and vice versa. and more ..is linux support cc compiler regards Ajay (3 Replies)
Discussion started by: ajaysahoo
3 Replies
MIME::Base64(3pm)					 Perl Programmers Reference Guide					 MIME::Base64(3pm)

NAME
MIME::Base64 - Encoding and decoding of base64 strings SYNOPSIS
use MIME::Base64; $encoded = encode_base64('Aladdin:open sesame'); $decoded = decode_base64($encoded); DESCRIPTION
This module provides functions to encode and decode strings into and from the base64 encoding specified in RFC 2045 - MIME (Multipurpose Internet Mail Extensions). The base64 encoding is designed to represent arbitrary sequences of octets in a form that need not be humanly readable. A 65-character subset ([A-Za-z0-9+/=]) of US-ASCII is used, enabling 6 bits to be represented per printable character. The following functions are provided: encode_base64($str) encode_base64($str, $eol); Encode data by calling the encode_base64() function. The first argument is the string to encode. The second argument is the line- ending sequence to use. It is optional and defaults to " ". The returned encoded string is broken into lines of no more than 76 characters each and it will end with $eol unless it is empty. Pass an empty string as second argument if you do not want the encoded string to be broken into lines. decode_base64($str) Decode a base64 string by calling the decode_base64() function. This function takes a single argument which is the string to decode and returns the decoded data. Any character not part of the 65-character base64 subset is silently ignored. Characters occurring after a '=' padding character are never decoded. If the length of the string to decode, after ignoring non-base64 chars, is not a multiple of 4 or if padding occurs too early, then a warning is generated if perl is running under "-w". If you prefer not to import these routines into your namespace, you can call them as: use MIME::Base64 (); $encoded = MIME::Base64::encode($decoded); $decoded = MIME::Base64::decode($encoded); DIAGNOSTICS
The following warnings can be generated if perl is invoked with the "-w" switch: Premature end of base64 data The number of characters to decode is not a multiple of 4. Legal base64 data should be padded with one or two "=" characters to make its length a multiple of 4. The decoded result will be the same whether the padding is present or not. Premature padding of base64 data The '=' padding character occurs as the first or second character in a base64 quartet. The following exception can be raised: Wide character in subroutine entry The string passed to encode_base64() contains characters with code above 255. The base64 encoding is only defined for single-byte characters. Use the Encode module to select the byte encoding you want. EXAMPLES
If you want to encode a large file, you should encode it in chunks that are a multiple of 57 bytes. This ensures that the base64 lines line up and that you do not end up with padding in the middle. 57 bytes of data fills one complete base64 line (76 == 57*4/3): use MIME::Base64 qw(encode_base64); open(FILE, "/var/log/wtmp") or die "$!"; while (read(FILE, $buf, 60*57)) { print encode_base64($buf); } or if you know you have enough memory use MIME::Base64 qw(encode_base64); local($/) = undef; # slurp print encode_base64(<STDIN>); The same approach as a command line: perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)' <file Decoding does not need slurp mode if every line contains a multiple of four base64 chars: perl -MMIME::Base64 -ne 'print decode_base64($_)' <file Perl v5.8 and better allow extended Unicode characters in strings. Such strings cannot be encoded directly, as the base64 encoding is only defined for single-byte characters. The solution is to use the Encode module to select the byte encoding you want. For example: use MIME::Base64 qw(encode_base64); use Encode qw(encode); $encoded = encode_base64(encode("UTF-8", "x{FFFF} ")); print $encoded; COPYRIGHT
Copyright 1995-1999, 2001-2004 Gisle Aas. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Distantly based on LWP::Base64 written by Martijn Koster <m.koster@nexor.co.uk> and Joerg Reichelt <j.reichelt@nexor.co.uk> and code posted to comp.lang.perl <3pd2lp$6gf@wsinti07.win.tue.nl> by Hans Mulder <hansm@wsinti07.win.tue.nl> The XS implementation uses code from metamail. Copyright 1991 Bell Communications Research, Inc. (Bellcore) SEE ALSO
MIME::QuotedPrint perl v5.12.1 2010-05-13 MIME::Base64(3pm)
All times are GMT -4. The time now is 09:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy