Sponsored Content
Operating Systems Solaris Need gcc binary for a SPARC machine Post 302554307 by jlliagre on Sunday 11th of September 2011 11:50:33 AM
Old 09-11-2011
You can extract all of the package files anywhere by using the pkgtrans command. If the only component you need is the gcc binary, which I start to doubt seriously, just extract the package in your home directory, /var/tmp, or /tmp, copy gcc somewhere in your PATH, make it executable and you might be done.

I don't get your politic/visibility point. Do you mean you are asking us to help circumventing a security or whatever measure taken by the people administering your machine ?
 

8 More Discussions You Might Find Interesting

1. Solaris

Where to buy used Sparc machine

Hello, I plan to take the SCSA exam. I think if I have a Sparc machine that will be very helpful, though I could run VMWare on Win system. So could anyone know where I can buy a used workstaion. I am not dare going to eBay :) , (I am not sure the source is reliable). I live in up NY state. And... (1 Reply)
Discussion started by: billshu
1 Replies

2. Solaris

gcc 4.2.0 from SUN binary gccfss

Hi All I have installed the above version of gcc from the SUN binaries and recieved the following linker error when trying to compile and link a hello world test program written in C++. ld: fatal: option -z has illegal argument `ld32=-S/export/home/sources/gcc_SUN_b... (2 Replies)
Discussion started by: C3000
2 Replies

3. Solaris

Installing gcc on SPARC 5.9

Hi, I am trying to install gcc on SPARC 5.9 pkgadd -d gcc-3.4.2-sol9-sparc-local i get the below error pkgadd: ERROR: attempt to process datastream failed - open of <gcc-3.4.2-sol9-sparc-local> failed, errno=2 pkgadd: ERROR: could not process datastream from... (3 Replies)
Discussion started by: saharookiedba
3 Replies

4. UNIX for Dummies Questions & Answers

Booting SPARC 5 Machine 's CD-ROM

Hi, I have inherited a Ultra 5 SPARC machine that I need to boot from its CD-ROM. WHen I turn on the machine it just boots to its hard drive. How do I get it to boot from the CD-ROM. I am a Solaris newbie.... (1 Reply)
Discussion started by: mojoman
1 Replies

5. Programming

Header file compilation using gcc in Sparc Solaris

I am facing problem while migrating the c++ code from Linux to Solaris. In linux the code is absolutly compiled fine with GCC compiler but when i am using the same in Solaris it coomplains bash-3.1$ gcc LibSip.h gcc: Compilation of header file requested The same command is working fine in... (2 Replies)
Discussion started by: mrupesh74
2 Replies

6. Solaris

Newly Compiled GCC 4.4.4 on Solaris sparc gives problem with -m32/-m64 flags

Hello experts, This issue has kept me busy all day long. It started off with openssl compilation which was giving linking error with following message: /usr/local/bin/ld: target elf32-sparc not found collect2: ld returned 1 exit status I tried every step possible thing that I could think... (2 Replies)
Discussion started by: d_shanke
2 Replies

7. Solaris

Solaris virtual machine SPARC?

Hello, please, can somebody tell me if can i virtualize Solaris 11 SPARC architecture in a x86 PC? Virtualbox allows doing that? i need to run Solaris 11 SPARC to make a lab, and dont have any SUN machine to do on it. Thanks in advance! (9 Replies)
Discussion started by: MuziKizuM
9 Replies

8. UNIX for Beginners Questions & Answers

Start /SYS on SUN SPARC does not start machine [SUN SPARC ENTERPRISE T-5240]

-> start /SYS Are you sure you want to start /SYS (y/n)? y Starting /SYS ]-> show HOST /HOST Targets: bootmode diag domain Properties: autorestart = reset autorunonerror = false bootfailrecovery = poweroff ... (29 Replies)
Discussion started by: z_haseeb
29 Replies
pkgtrans(1)							   User Commands						       pkgtrans(1)

NAME
pkgtrans - translate package format SYNOPSIS
pkgtrans [-inosg] [-k keystore] [-a alias] [-P passwd] device1 device2 [pkginst...] DESCRIPTION
The pkgtrans utility translates an installable package from one format to another. It translates: o a file system format to a datastream o a file system format to a signed datastream o a datastream to a file system format o one file system format to another file system format OPTIONS
The options and arguments for this command are: -i Copies only the pkginfo(4) and pkgmap(4) files. -n Creates a new instance of the package on the destination device if any instance of this package already exists, up to the number speci- fied by the MAXINST variable in the pkginfo(4) file. -o Overwrites the same instance on the destination device. Package instance will be overwritten if it already exists. -s Indicates that the package should be written to device2 as a datastream rather than as a file system. The default behavior is to write a file system format on devices that support both formats. -g Sign resulting datastream. -k keystore Use keystore to retrieve private key used to generate signature. If it not specified, default locations are searched to find the speci- fied private key specified by -a. If no alias is given, and multiple keys exist in the key store, pkgtrans will abort. See KEYSTORE LOCATIONS and KEYSTORE AND CERTIFICATE FORMATS in pkgadd(1M) for more information on search locations and formats. When running as a user other than root, the default base directory for certificate searching is ~/.pkg/security, where ~ is the home directory of the user invoking pkgtrans. -a alias Use public key certificate associated with friendlyName alias, and the corresponding private key. See KEYSTORE LOCATIONS and KEYSTORE AND CERTIFICATE FORMATS in pkgadd(1M) for more information. -P passwd Supply password used to decrypt the keystore. See PASS PHRASE ARGUMENTS in pkgadd(1M) for details on the syntax of the argument to this option. OPERANDS
device1 Indicates the source device. The package or packages on this device will be translated and placed on device2. See DEVICE SPECIFIERS, below. device2 Indicates the destination device. Translated packages will be placed on this device. See DEVICE SPECIFIERS, below. pkginst Specifies which package instance or instances on device1 should be translated. The token all may be used to indicate all packages. pkginst.* can be used to indicate all instances of a package. If no packages are defined, a prompt shows all packages on the device and asks which to translate. The asterisk character (*) is a special character to some shells and may need to be escaped. In the C-Shell, "*" must be surrounded by single quotes (') or preceded by a backslash (). DEVICE SPECIFIERS
Packaging tools, including pkgtrans, pkgadd(1M), and pkgchk(1M), have options for specifying a package location by specifying the device on which it resides. Listed below are the device types that a package can be stored to and retrieved from. Note that source and destination devices cannot be the same. directory Packages can be stored onto a directory by specifying an absolute path to a file system directory. The package contents reside in a directory within the specified directory. The package directory name must be identical to its PKG specification in the pkginfo(4) file. An example device specification of this type is /export/packages. device Packages can be stored to a character or block device by specifying the device identifier as the device. Common examples of this device type are /dev/rmt/0 for a removable magnetic tape and /floppy/floppy0 for the first floppy disk on the system. pkgtrans can also pro- duce regular file system files in a stream format, which is suitable for storage on a character device, web server, or as input to pkgadd(1M). device alias Devices that have been specified in /etc/device.tab are eligible for being the recipient or source of a package. Common examples of this type of device specification are spool (the default package device location) and disk1. These names correspond to devices speci- fied in /etc/device.tab EXAMPLES
Example 1: Examples of the pkgtrans command The following example translates all packages on the floppy drive /dev/diskette and places the translations on /tmp: example% pkgtrans /dev/diskette /tmp all The following example translates packages pkg1 and pkg2 on /tmp and places their translations (that is, a datastream) on the 9track1 output device: example% pkgtrans /tmp 9track1 pkg1 pkg2 The following example translates pkg1 and pkg2 on /tmp and places them on the diskette in a datastream format: example% pkgtrans -s /tmp /dev/diskette pkg1 pkg2 The following example creates a signed package from pkg1 and pkg2, and reads the password from the $PASS environment variable: example% pkgtrans -sg -k /tmp/keystore.p12 -alias foo -p env:PASS /tmp /tmp/signedpkg pkg1 pkg2 ENVIRONMENT VARIABLES
The MAXINST variable is set in the pkginfo(4) file and declares the maximum number of package instances. EXIT STATUS
0 Successful completion. >0 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpkgcmdsu | +-----------------------------+-----------------------------+ |Interface Stability |: | | | | | Command line |Evolving | | | | | Digitally signed stream |Evolving | |package | | +-----------------------------+-----------------------------+ SEE ALSO
pkginfo(1), pkgmk(1), pkgparam(1), pkgproto(1), installf(1M), pkgadd(1M), pkgask(1M), pkgrm(1M), removef(1M), pkginfo(4), pkgmap(4), attributes(5) Application Packaging Developer's Guide NOTES
By default, pkgtrans will not translate any instance of a package if any instance of that package already exists on the destination device. Using the -n option creates a new instance if an instance of this package already exists. Using the -o option overwrites an instance of this package if it already exists. Neither of these options are useful if the destination device is a datastream. SunOS 5.10 15 May 2003 pkgtrans(1)
All times are GMT -4. The time now is 06:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy