LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Want to install CUPS on Sun 10 VM. Not able to install GCC 3.4.6 version (https://www.linuxquestions.org/questions/solaris-opensolaris-20/want-to-install-cups-on-sun-10-vm-not-able-to-install-gcc-3-4-6-version-948887/)

piyush128k 06-06-2012 05:01 PM

Want to install CUPS on Sun 10 VM. Not able to install GCC 3.4.6 version
 
Sun is like some alien language for me. I don't have any books or so but searching on web and downloading manuals is how i am learning. Rather it is on the job i learn. Summer job that is. I was stuck for a long time to get the to the OK Prompt during the install of Sun 10. Now i am trying to install CUPS and am sure i will get stuck many places. Right now i have download gcc-3.4.6.tar.gz and not sure how to install it. On ther web people have given diff command and some say i have to create directories and some say i dont. Getting confused.. Please help. What are the commands? i have some but just want to interact from professional

piyush128k 06-07-2012 08:50 AM

I have created the gcc folder with path as usr/lib/gcc and now i tped the command tar -xvf gcc-3.4.6.tar.gz and gives me the error:- tar:directory checksum error.
When i do #which gcc is says: no gcc in /usr/sbin /use/bin.
What does it mean..i know it is not installed but should i created the directories in /usr/sbin and usr/bin or will the gcc command to install gcc do everything.
pkginfo -x | grep -i gcc gives:-
SUNWgcc gcc - The GNU C compiler
SunWgccruntime GCC Runtime Libraries
However when i types :- #pkgchk -lp /usr/sfw/bin/gcc gave:-
NOTE: couildn't lock the package database
pathername: /usr/sfw/bin/gcc
Typed: linked file
Source of the link:../../../usr/sfw/bin/i386-pc-solaris2.10-gcc-3.4.3
Referenced by the following packages:
SUNWgcc
Current status:installed
But #gcc-v gives:-
gcc:not found

Now is it installed in advanced but a lower version or am i really loosing it?
Am not either sure what is the actual command. Any help people?

piyush128k 06-07-2012 10:08 AM

OKAY!

This is what i did from my common sense...and hope i get more...hehehe
#cd / (i typed cd / so i can make sure that i am at the root directory)
#su ( as i typed "su", (super user) it immediately asked for the password and i gave it. it got me back to the # )
Then i types the two commands below:-
#gunzip gcc-3.4.6.tar.gz (hit enter...it did something positive)
#tar -xvf gcc-3.4.6.tar (hit enter and this one really did something positive for a real long time)
I hope GCC is installed but when i do the below command
#which gcc ( this is what is give in return) :- no gcc /usr/sbin /usr/bin
Anyway, I think it was installed though the command above says, "NO IT IS NOT INSTALLED YOU FOOL!" hehehe
Now it is time to install the filter file like PNG, JPEG, TIFF, ZLIB....and the other thing is that how to get"./configure" to run.
Lets see what i able to come up with.

_sa_ 06-07-2012 10:48 AM

Quote:

Originally Posted by piyush128k (Post 4697928)
OKAY!

This is what i did from my common sense...and hope i get more...hehehe
#cd / (i typed cd / so i can make sure that i am at the root directory)
#su ( as i typed "su", (super user) it immediately asked for the password and i gave it. it got me back to the # )
Then i types the two commands below:-
#gunzip gcc-3.4.6.tar.gz (hit enter...it did something positive)
#tar -xvf gcc-3.4.6.tar (hit enter and this one really did something positive for a real long time)
I hope GCC is installed but when i do the below command
#which gcc ( this is what is give in return) :- no gcc /usr/sbin /usr/bin
Anyway, I think it was installed though the command above says, "NO IT IS NOT INSTALLED YOU FOOL!" hehehe
Now it is time to install the filter file like PNG, JPEG, TIFF, ZLIB....and the other thing is that how to get"./configure" to run.
Lets see what i able to come up with.

I am not sure if your install of Solaris 10 came with a compiler, because I do not know what clusters you installed. If there was no compiler installed, then that means that you won't be able to compile gcc, which it appears you are trying to do. I would suggest using the packages on Sun Freeware to install GCC; it will make your life immensely easier. You may also be able to find CUPS on there, but I am not sure about that as I don't use CUPS.

http://www.sunfreeware.com/indexintel10.html

Just make sure that you install all of the prereq's for gcc, and any pertinent prereq's for the prereq's. I know it sounds kind of confusing, but just follow the bouncing ball. Every package on Sun Freeware lists the prereq packages that it needs, and even includes the links to those packages. You will also need to update your path appropriately:
Code:

$export PATH=$PATH;/usr/sfw/bin;/usr/sfw/sbin
And you may need to update your LD Library path as well:

Code:

root@calvin ~]# crle

Configuration file [version 4]: /var/ld/ld.config 
  Platform:    32-bit LSB 80386
  Default Library Path (ELF):  /lib:/usr/lib:/usr/local/lib
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)

Command line:
  crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/local/lib


root@calvin ~]# crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/local/lib:/usr/sfw/lib

Also make sure that you are downloading the packages, and not the source code. You will be unable to compile code since you don't have a compiler (at least thats what it seems like)

piyush128k 06-07-2012 12:37 PM

Some places i have seen on the web that is either wrong or not completely described. I know much description is not there in linux or even programming to take for example. So far there is a folder of gcc 3 4 6 created in the root directory and till now #which gcc gives no gcc in /usr/sbin /usr/bin. Also #gcc --version gives gcc: not found. Am going crazy. #tar -xvf gcc-3.4.6.tar does whole lot of things and at the end says "installed".
GCC should be installed in /usr/sfw/bin and for that you first need to set the path like #PATH=$PATH:/usr/sfw/bin. So i did that and ran #tar -xvf gcc-3.4.6.tar but that site also said that it should also be installed in /usr/local/bin and for that u must add the path. Well then i did #PATH=$PATH:/usr/local/bin and ran #tar -xvf gcc-3.4.6.tar. It sis the same things and i still get #which gcc gives no gcc in /usr/sbin /usr/bin. Also #gcc --version gives gcc: not found. WOW!
I believe "SA" user has replied to my question. Let me take a look on that now.

piyush128k 06-07-2012 12:59 PM

just came to know that i was installing wrong gcc version of 3.4.6. I wanted 64 bit so it should be gcc 3.4.3. So re-downloading. Either Windows administration is much easier or because i have worked on it for years whatever it is, this linix and unix why they cannot further simplify things especially in the command prompt and their manuals. I read the actual sun manual..... somethings are not to the point or not mentioned. People who want to migrate to this platforms have difficulties and several questions as compared to what they have been working on. Frustrated..yes I am but it is expected. Human nature when not able to figure out. Either leave or keeping going on. So guess what am i doing....on..and on..and on. Phhmmmwwwppphhh!

piyush128k 06-07-2012 01:08 PM

Thanks to "SA" user #crle command...I dont need 64bit. I can continue to stick to gcc 3.4.6. Cool!

# crle

Default Configuration file [version 4]: /var/ld/ld.config => "not found" (REST OF IT BELOW IS THE SAME)
Platform: 32-bit LSB 80386
Default Library Path (ELF): /lib:/usr/lib:/usr/local/lib
Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)

piyush128k 06-07-2012 01:24 PM

#pkgchk -vlp /usr/sfw/bin/gcc "give the output as below"
Pathname: /usr/sfw/bin/gcc
Type: linked file
Source of link: ../../../usr/sfw/bin/i386-pc-solaris2.10-gcc-3.4.3
Referenced by the following packages:
SUNWgcc
Current status: installed


#pkginfo -x | grep -i gcc "give me the output as below"
SUNWgcc gcc - The GNU C compiler
SUNWgccruntime GCC Runtime libraries

Despite this
#gcc -v "give the output as"
gcc -v: not found


Now where in the world and what, before and after, right or wrong, installed or not, am i suppose to do. I am literally going in circles. I dont know what am doing. I know what the command will do but. Having incomplete information is really dangerous.

Can anyone for crying out loud Share with me in to the detail, step by step, word by word, syntax command by command share the steps to install CUPS with every pre-requisite shared and explain. Please don't start like SUN in their manual. " Install this file, that file and now you can finally execute the command for installing CUPS"

I am not trying to prove anything to anyone but myself and i seem to be loosing the grip here but still sitting on my chair and my VMs.

honeybadger 06-07-2012 01:28 PM

Umm. sorry if this seems abit out of the box but it sure has some chance of working. I can suggest a workaround here. The first thing I would do here is look for a biarly compiler line cint (it is good) but I do not know if it would compile something as complicated as C (assuming you do not have a compiler). I belive with solaris the c compiler is called gas. Gosh, that is why I stick with Linux. If you can work this around I think you have a chance of getting at something. Also make sure that you use the usual man -k comiler etc to make sure if you have any compiler installed.
Hope this helps.
A far as cint is concerned I believe it would be a lot easier compling cups than gcc.

_sa_ 06-07-2012 01:36 PM

Quote:

Originally Posted by piyush128k (Post 4698047)
#pkgchk -vlp /usr/sfw/bin/gcc "give the output as below"
Pathname: /usr/sfw/bin/gcc
Type: linked file
Source of link: ../../../usr/sfw/bin/i386-pc-solaris2.10-gcc-3.4.3
Referenced by the following packages:
SUNWgcc
Current status: installed


#pkginfo -x | grep -i gcc "give me the output as below"
SUNWgcc gcc - The GNU C compiler
SUNWgccruntime GCC Runtime libraries

Despite this
#gcc -v "give the output as"
gcc -v: not found

try the following and post the output:

Code:

/bin/find / -name gcc*
You probably do not have gcc in your path, so you will need to specify the full path to gcc, or you will need to update your environment depending on where the find command returns the path to gcc to be., i.e

Code:

$export PATH=$PATH;/usr/sfw/bin;/usr/sfw/sbin
Quote:

Originally Posted by piyush128k (Post 4698047)
Either Windows administration is much easier or because i have worked on it for years whatever it is, this linix and unix why they cannot further simplify things especially in the command prompt and their manuals. I read the actual sun manual.....

*nix operating systems are more straightforward then windosw IMHO. It takes a little bit of getting used to before things start to make sense. But that is the same no matter what OS you are talking about. I find Windows to be a terribly laid out system, that overcomplicates the simplest things. That is the reason that I always wanted to become a *nix admin, and not a windows admin.

_sa_ 06-07-2012 01:46 PM

Quote:

Originally Posted by piyush128k (Post 4698047)
#pkgchk -vlp /usr/sfw/bin/gcc "give the output as below"
Pathname: /usr/sfw/bin/gcc
Type: linked file
Source of link: ../../../usr/sfw/bin/i386-pc-solaris2.10-gcc-3.4.3
Referenced by the following packages:
SUNWgcc
Current status: installed


#pkginfo -x | grep -i gcc "give me the output as below"
SUNWgcc gcc - The GNU C compiler
SUNWgccruntime GCC Runtime libraries

Despite this
#gcc -v "give the output as"
gcc -v: not found


Now where in the world and what, before and after, right or wrong, installed or not, am i suppose to do. I am literally going in circles. I dont know what am doing. I know what the command will do but. Having incomplete information is really dangerous.

Can anyone for crying out loud Share with me in to the detail, step by step, word by word, syntax command by command share the steps to install CUPS with every pre-requisite shared and explain. Please don't start like SUN in their manual. " Install this file, that file and now you can finally execute the command for installing CUPS"

I am not trying to prove anything to anyone but myself and i seem to be loosing the grip here but still sitting on my chair and my VMs.

Also if you are only doing VM's, then why are you using solaris 10? are you bound to that distribution? I would say try Open Indiana, which is the open source version of Solaris 11. Installing CUPS on OI is cake:

Code:

$ pkg search cups
INDEX          ACTION VALUE                                              PACKAGE
description    set    CUPS (Runtime Libraries)                          pkg:/library/print/cups-libs@1.4.2-0.151.1.4
description    set    Print Manager for CUPS                            pkg:/print/cups/system-config-printer@0.5.11-0.151.1.4
description    set    Python language bindings for CUPS                  pkg:/library/python-2/pycups@1.9.46-0.151.1.4
description    set    GTK+ - GIMP toolkit libraries - CUPS Print Backend pkg:/library/desktop/gtk2/gtk-backend-cups@0.5.11-0.151.1.4
pkg.description set    Automatic queue creation for CUPS                  pkg:/print/cups/hal-cups-utils@0.6.19-0.151.1.4
pkg.description set    Print Manager for CUPS                            pkg:/print/cups/system-config-printer@0.5.11-0.151.1.4
pkg.description set    Python language bindings for CUPS                  pkg:/library/python-2/pycups@1.9.46-0.151.1.4
pkg.description set    GTK+ - GIMP toolkit libraries - CUPS Print Backend pkg:/library/desktop/gtk2/gtk-backend-cups@0.5.11-0.151.1.4
pkg.summary    set    CUPS (Runtime Libraries)                          pkg:/library/print/cups-libs@1.4.2-0.151.1.4
pkg.summary    set    Print Manager for CUPS                            pkg:/print/cups/system-config-printer@0.5.11-0.151.1.4
pkg.summary    set    Python language bindings for CUPS                  pkg:/library/python-2/pycups@1.9.46-0.151.1.4
pkg.summary    set    GTK+ - GIMP toolkit libraries - CUPS Print Backend pkg:/library/desktop/gtk2/gtk-backend-cups@0.5.11-0.151.1.4
basename        dir    usr/lib/cups                                      pkg:/print/cups/hal-cups-utils@0.6.19-0.151.1.4
basename        dir    usr/lib/cups                                      pkg:/print/filter/gutenprint@5.2.4-0.151.1.4
basename        dir    usr/share/cups                                    pkg:/print/filter/gutenprint@5.2.4-0.151.1.4
basename        dir    etc/cups                                          pkg:/print/filter/ghostscript@8.64-0.151.1.4
basename        dir    usr/lib/cups                                      pkg:/print/filter/ghostscript@8.64-0.151.1.4
basename        dir    usr/share/cups                                    pkg:/print/filter/ghostscript@8.64-0.151.1.4
basename        dir    usr/lib/cups                                      pkg:/print/filter/hplip@3.9.8-0.151.1.4
basename        dir    usr/share/cups                                    pkg:/print/filter/hplip@3.9.8-0.151.1.4
basename        dir    usr/share/cups                                    pkg:/print/cups/filter/foomatic-db@0.20080903-0.151.1.4
basename        dir    etc/cups                                          pkg:/print/cups@1.4.2-0.151.1.4
basename        dir    usr/include/cups                                  pkg:/print/cups@1.4.2-0.151.1.4
basename        dir    usr/lib/cups                                      pkg:/print/cups@1.4.2-0.151.1.4
basename        dir    usr/share/cups                                    pkg:/print/cups@1.4.2-0.151.1.4
basename        dir    usr/share/doc/cups                                pkg:/print/cups@1.4.2-0.151.1.4
basename        dir    var/cache/cups                                    pkg:/print/cups@1.4.2-0.151.1.4
basename        dir    var/log/cups                                      pkg:/print/cups@1.4.2-0.151.1.4
basename        dir    var/spool/cups                                    pkg:/print/cups@1.4.2-0.151.1.4
basename        dir    usr/lib/cups                                      pkg:/print/cups/filter/foomatic-db-engine@0.20080903-0.151.1.4
basename        dir    usr/lib/cups                                      pkg:/print/lp/filter/foomatic-rip@3.0.2-0.151.1.4
basename        file  etc/security/auth_attr.d/cups                      pkg:/print/cups@1.4.2-0.151.1.4
basename        file  etc/security/prof_attr.d/cups                      pkg:/print/cups@1.4.2-0.151.1.4
pkg.fmri        set    openindiana.org/print/cups                        pkg:/print/cups@1.4.2-0.151.1.4

$ pkg install pkg:/print/cups@1.4.2-0.151.1.4

that is all you would need to do if using Open Indiana.

piyush128k 06-07-2012 02:29 PM

# /bin/find / -name gcc*
/usr/sfw/lib/gcc
/usr/sfw/bin/gccbug
/usr/sfw/bin/gcc
/usr/sfw/share/man/man1/gcc.1
/usr/sfw/share/info/gcc.info
/usr/sfw/share/info/gccinstall.info
/usr/sfw/share/info/gccint.info
/usr/sfw/libexec/gcc
/usr/sfw/mysql/mysql-test/r/gcc296.result
/usr/sfw/mysql/mysql-test/t/gcc296.test
/gcc-3.4.6
/gcc-3.4.6/gcc
/gcc-3.4.6/gcc/po/gcc.pot
/gcc-3.4.6/gcc/doc/gcc.1
/gcc-3.4.6/gcc/doc/gccinstall.info
/gcc-3.4.6/gcc/doc/include/gcc-common.texi
/gcc-3.4.6/gcc/doc/gcc.info
/gcc-3.4.6/gcc/doc/gcc.texi
/gcc-3.4.6/gcc/doc/gccint.info
/gcc-3.4.6/gcc/doc/gccint.texi
/gcc-3.4.6/gcc/gcc.c
/gcc-3.4.6/gcc/gcc.h
/gcc-3.4.6/gcc/gccbug.in
/gcc-3.4.6/gcc/gccspec.c
/gcc-3.4.6/gcc/testsuite/ada/acats/tests/gcc
/gcc-3.4.6/gcc/testsuite/lib/gcc.exp
/gcc-3.4.6/gcc/testsuite/lib/gcc-dg.exp
/gcc-3.4.6/gcc/testsuite/lib/gcc-defs.exp
/gcc-3.4.6/gcc/testsuite/gcc.c-torture
/gcc-3.4.6/gcc/test suite/gcc.misc-tests
/gcc-3.4.6/gcc/testsuite/gcc.test-framework
/gcc-3.4.6/gcc/testsuite/gcc.dg
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-1.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-2.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-3.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-4.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-5.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-6.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-7.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-8.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-9.c
/gcc-3.4.6/contrib/gcc_update
/gcc-3.4.6/contrib/gcc_build
/gcc-3.4.6/contrib/gccbug.el
/gcc-3.4.6/maintainer-scripts/gcc_release
/gcc-3.4.6/config/gcc-lib-path.m4
/gcc-3.4.6/boehm-gc/gcc_support.c
/gcc-3.4.6/boehm-gc/include/private/gcconfig.h
/gcc-3.4.6.tar
#
# $export PATH=$PATH;/usr/sfw/bin;/usr/sfw/sbin
PATH=/usr/sbin:/usr/bin:/usr/local/bin: not found
/usr/sfw/bin: cannot execute
/usr/sfw/sbin: cannot execute
# $export PATH=$PATH;/usr/sfw/bin
PATH=/usr/sbin:/usr/bin:/usr/local/bin: not found
/usr/sfw/bin: cannot execute
# ls
5bin bin java oasys pub tmp
X ccs jdk old sadm ucb
X11 demo kernel openwin sbin ucbinclude
X11R6 dict kvm perl5 sfw ucblib
adm dt lib pgadmin3 share vmsys
apache games mail platform snadm xpg4
apache2 gnome man postgres spool xpg6
appserver include net preserve src
aset j2se news proc sunvts
# cd /
# ls
@LongLink lib
Desktop libpng-1.0.6.tar.gz
Documents lost+found
bin mnt
boot net
cups-1.6b1-source.tar.bz2 opt
cups-1.6b1-source.tar.gz platform
dev proc
devices sbin
etc system
export tiff-v3.4-tar.gz
gcc-3.4.6 tmp
gcc-3.4.6.tar usr
home var
jpegsrc.v6b.tar.gz vol
kernel zlib-1.1.3.tar.gz
# $export PATH=$PATH;/usr/sfw/bin
PATH=/usr/sbin:/usr/bin:/usr/local/bin: not found
/usr/sfw/bin: cannot execute
#

User"SA" a Sun 10 Server, which is not able to print to thru CUPS. guys here are not able to figure it out. I took it up. Cant do much on a production server so in the mean while, i said why not install the same version on VM and install CUPS then probably i would get a better understanding and be able to resolve the problem on that production sun 10 server with much less difficulty.

_sa_ 06-07-2012 03:13 PM

Quote:

Originally Posted by piyush128k (Post 4698109)
# /bin/find / -name gcc*
/usr/sfw/lib/gcc
/usr/sfw/bin/gccbug
/usr/sfw/bin/gcc
/usr/sfw/share/man/man1/gcc.1
/usr/sfw/share/info/gcc.info
/usr/sfw/share/info/gccinstall.info
/usr/sfw/share/info/gccint.info
/usr/sfw/libexec/gcc
/usr/sfw/mysql/mysql-test/r/gcc296.result
/usr/sfw/mysql/mysql-test/t/gcc296.test
/gcc-3.4.6
/gcc-3.4.6/gcc
/gcc-3.4.6/gcc/po/gcc.pot
/gcc-3.4.6/gcc/doc/gcc.1
/gcc-3.4.6/gcc/doc/gccinstall.info
/gcc-3.4.6/gcc/doc/include/gcc-common.texi
/gcc-3.4.6/gcc/doc/gcc.info
/gcc-3.4.6/gcc/doc/gcc.texi
/gcc-3.4.6/gcc/doc/gccint.info
/gcc-3.4.6/gcc/doc/gccint.texi
/gcc-3.4.6/gcc/gcc.c
/gcc-3.4.6/gcc/gcc.h
/gcc-3.4.6/gcc/gccbug.in
/gcc-3.4.6/gcc/gccspec.c
/gcc-3.4.6/gcc/testsuite/ada/acats/tests/gcc
/gcc-3.4.6/gcc/testsuite/lib/gcc.exp
/gcc-3.4.6/gcc/testsuite/lib/gcc-dg.exp
/gcc-3.4.6/gcc/testsuite/lib/gcc-defs.exp
/gcc-3.4.6/gcc/testsuite/gcc.c-torture
/gcc-3.4.6/gcc/test suite/gcc.misc-tests
/gcc-3.4.6/gcc/testsuite/gcc.test-framework
/gcc-3.4.6/gcc/testsuite/gcc.dg
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-1.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-2.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-3.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-4.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-5.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-6.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-7.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-8.c
/gcc-3.4.6/gcc/testsuite/gcc.dg/format/gcc_diag-9.c
/gcc-3.4.6/contrib/gcc_update
/gcc-3.4.6/contrib/gcc_build
/gcc-3.4.6/contrib/gccbug.el
/gcc-3.4.6/maintainer-scripts/gcc_release
/gcc-3.4.6/config/gcc-lib-path.m4
/gcc-3.4.6/boehm-gc/gcc_support.c
/gcc-3.4.6/boehm-gc/include/private/gcconfig.h
/gcc-3.4.6.tar
#
# $export PATH=$PATH;/usr/sfw/bin;/usr/sfw/sbin
PATH=/usr/sbin:/usr/bin:/usr/local/bin: not found
/usr/sfw/bin: cannot execute
/usr/sfw/sbin: cannot execute
# $export PATH=$PATH;/usr/sfw/bin
PATH=/usr/sbin:/usr/bin:/usr/local/bin: not found
/usr/sfw/bin: cannot execute
# ls
5bin bin java oasys pub tmp
X ccs jdk old sadm ucb
X11 demo kernel openwin sbin ucbinclude
X11R6 dict kvm perl5 sfw ucblib
adm dt lib pgadmin3 share vmsys
apache games mail platform snadm xpg4
apache2 gnome man postgres spool xpg6
appserver include net preserve src
aset j2se news proc sunvts
# cd /
# ls
@LongLink lib
Desktop libpng-1.0.6.tar.gz
Documents lost+found
bin mnt
boot net
cups-1.6b1-source.tar.bz2 opt
cups-1.6b1-source.tar.gz platform
dev proc
devices sbin
etc system
export tiff-v3.4-tar.gz
gcc-3.4.6 tmp
gcc-3.4.6.tar usr
home var
jpegsrc.v6b.tar.gz vol
kernel zlib-1.1.3.tar.gz
# $export PATH=$PATH;/usr/sfw/bin
PATH=/usr/sbin:/usr/bin:/usr/local/bin: not found
/usr/sfw/bin: cannot execute
#

User"SA" a Sun 10 Server, which is not able to print to thru CUPS. guys here are not able to figure it out. I took it up. Cant do much on a production server so in the mean while, i said why not install the same version on VM and install CUPS then probably i would get a better understanding and be able to resolve the problem on that production sun 10 server with much less difficulty.

I am sorry, i told you the wrong way to set the path, you just need to do:

Code:

$ PATH=$PATH:/usr/sfw/bin
That should set your path appropriately. Then run a
Code:

$which gcc
It should then return:

Code:

/usr/sfw/bin/gcc

piyush128k 06-07-2012 03:29 PM

I mentioned that i did that before and it worked but after you told me the first time hence i did it again and it gave an error if you read my earlier thread. The command you gave was wrong, thats right but i later typed the correct one and had pasted the output. I have done it again. Please check.

# $ PATH=$PATH:/usr/sfw/bin
$: not found
# $PATH=$PATH:/usr/sfw/bin
/usr/sbin:/usr/bin:/usr/local/bin=/usr/sbin:/usr/bin:/usr/local/bin:/usr/sfw/bin: not found
# $which gcc
gcc: not found
#

piyush128k 06-07-2012 03:46 PM

# PATH=$PATH:/usr/sfw/bin
# export PATH
# which gcc
/usr/sfw/bin/gcc
# gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 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.

This gcc is the default one which was installed when sun 10 was installed but this is not gcc 3.4.6. thats cool. now since this i think proves that the gcc compiler is installed hence i dont need to install the libraries like png, jpeg, tiff, zlib anymore?
Is mmy next step to now execute the cups command package but for that dont i need to use #./configure . This damn thing does not work. Let me check again..
#./configure gives output
./configure: not found

_sa_ 06-07-2012 04:09 PM

Quote:

Originally Posted by piyush128k (Post 4698166)
# PATH=$PATH:/usr/sfw/bin
# export PATH
# which gcc
/usr/sfw/bin/gcc
# gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 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.

This gcc is the default one which was installed when sun 10 was installed but this is not gcc 3.4.6. thats cool. now since this i think proves that the gcc compiler is installed hence i dont need to install the libraries like png, jpeg, tiff, zlib anymore?
Is mmy next step to now execute the cups command package but for that dont i need to use #./configure . This damn thing does not work. Let me check again..
#.configure gives output
./configure: not found

Sorry, I did not read the entire thread because your spacing is terrible and everything is mashed together. Two things though; First, have you Googled your issue at all? The second or third result for "How to install CUPS on solaris 10," is :

http://www.lengers.com/index.php?opt...aris&Itemid=61

there is apparently a Sun package that comes on the Companion CD for the Solaris 10 OS, which means that you don't need to do all of this silly compiling from source. Second, have you ever compiled something from source on a unix type system? Because the first thing you should be doing after you untar the source is CD'ing into the unpacked directory. There is a INSTALL.txt inside there that give you specific instructions for how to build the application. I am all for helping you out, but it seems that you haven't even read the slightest documentation. If you are trying to help out your unix admins with an issue, you should at least prep yourself by taking some time to get acquainted with the in's and out's of unix. Not knowing to set your path, and to CD into the source directory to read the application specific compile instructions just means that you are asking for the entire process to be difficult. I am in no way trying to be an ass, just merely saying that you should read a little bit more before you attempt to compile applications from source. Even experienced unix SA's have difficulty compiling things, a beginner is bound to run into many additional issue's.

piyush128k 06-07-2012 04:22 PM

But ofcourse..............i am not acquainted with Sun, Linux or Unix. I am student consultant for Windows at the university and this is my summer job in the IT. I took this up for myself not for anyone else. Their priority right now is something else so i have taken this up sun CUPS issue. Your comments are well justified and NO! you are not making an ass of yourself :-) I just dont know and yes am asking too much hence, i am simply asking if someone has the instructions or who is free to guide. Obviously i google each problem i face but people on the net themselves are confused as i have mentioned earlier in my thread. Thats why its more tuff. The guys here have given me a resource to solve the issue and that is the internet. No manuals or sorts.
I help people with Windows..which is many times spoon feeding. Time is what matters. If i dont have the time or i feel i cannot guide thru, i atleast give some direction or info sites....Thanks to you for what all you have done. Am cool and I dont feel bad on what you wrote.

Time for me to leave as it is going to be 4:30pm. Will see what the world comments on my thread to help me out. Google is what i have.

Bye.........till tomorrow

_sa_ 06-07-2012 04:32 PM

Quote:

Originally Posted by piyush128k (Post 4698191)
But ofcourse..............i am not acquainted with Sun, Linux or Unix. I am student consultant for Windows at the university and this is my summer job in the IT. I took this up for myself not for anyone else. Their priority right now is something else so i have taken this up sun CUPS issue. Your comments are well justified and NO! you are not making an ass of yourself :-) I just dont know and yes am asking too much hence, i am simply asking if someone has the instructions or who is free to guide. Obviously i google each problem i face but people on the net themselves are confused as i have mentioned earlier in my thread. Thats why its more tuff. The guys here have given me a resource to solve the issue and that is the internet. No manuals or sorts.
I help people with Windows..which is many times spoon feeding. Time is what matters. If i dont have the time or i feel i cannot guide thru, i atleast give some direction or info sites....Thanks to you for what all you have done. Am cool and I dont feel bad on what you wrote.

Time for me to leave as it is going to be 4:30pm. Will see what the world comments on my thread to help me out. Google is what i have.

Bye.........till tomorrow

Try that link that I posted. CUPS is provided by SUN/Oracle on the companion CD in package form and will, from what i can tell, require no compilation on your part.

piyush128k 06-11-2012 01:14 PM

Well! SFWcups, SFWgcmn, SFWoscp, SFWespgs, SFWgcc34l packages are missing, every other package exists but these. I downloaded "sol-10-u10-companion-ga.iso" because that's the one i need as per the version, i have installed and checked in the release file. Quite strange is it not. Great link and with all the steps but the packages you actually need are not existing in the "iso" companion link. SA user this is the link you gave :- http://www.lengers.com/index.php?opt...aris&Itemid=61
I may not know but i can follow.....if the things are rightly mentioned. More than 20 sites, i have been to, something or the other is not right. Anyways, I will continue.....

_sa_ 06-11-2012 04:04 PM

I am not sure what companion CD these are from, but here is a link to the SPARC SFW packages:

https://juilliard.broward.edu/solari...parc/Packages/

you will have to figure out how to pull them down from the site, as there don't appear to be datastream versions of the packages.

piyush128k 06-12-2012 09:20 AM

I made sure the path to GCC works which the default one which is installed in advance as per the command already mentoned in the threads.
Later i pathed into the tared directory of cups 1.6b1 in the root and executed ./cofigure. All seems well except for the last line:-
configure: error: unable to find the required library archive command. I believe it is talking about some libraries which i dont have. Based on the link <<http://www.cups.org/doc-1.1/sam.html#BUILDING_INSTALLING>> i need two kinds of libraries, CUPS imaging libraries and CUPS libraries. I have the first one. the second one is CDSA, TLS and OpenSSL Looking into it. The link says to go to ftp://ftp.easysw.com/pub/ but i have check there as well. Nothing. Mehn! why did i take this up?
SA user, the link you gave does have Sparc and i386. I have used the i386. Neither of the SFW packages mentioned on the link are available either in i386 or Sparc.

Right now i am concerned with :- "configure: error: unable to find the required library archive command" to which not able to find something logical. Mostly people on the internet are copy and past. For installations steps for anything in Unix, they have not mentioned what they did and how. Really Sad!. Once I am done with this. I will do so.

Helpers please keep in mind, I have mentioned in my earlier threads that i am on VM so using x86 and not SPARC

piyush128k 06-15-2012 09:37 AM

One part of my problem was solved this Wednesday. The GCC installation. Before every command you will see "#". That is just the prompt in this OS.
Download it from :- http://ftp.gnu.org/gnu/gcc/
I had downloaded gcc-3.4.6.tar.gz ( you can also download gcc-3.4.6.tar.bz2 as well. It simply uses the more recent version of compression and it is better but makes no difference)
The default version installed in Solaris 10 is gcc 3.4.3 so i do not believe we need to install it again. The problem was i just had not set the path in "PATH" and got all confused and mixed up.
After i downloaded the file i placed it in the following directory :- /opt/csw/gcc3/bin
Run either of the two commands depending on which file you use.
#gunzip gcc-3.4.6.tar.gz
or
#bunzip2 gcc-3.4.6.tar.bz2 (you may also use #bunzip2 -d gcc-3.4.6.tar.bz2 where "d" is for decompress)
This decompresses the file. there are more switches to both gunzip and bunzip2 and you can find it on the internet if required
Then i use the tar command to extract it which creates a sub directory.
#tar -xvf gcc-3.4.6.tar (please do not type the gz or bz2 at the end like before)
tar is for- Tape Archiver
x - extract
v - verbose output (lists all files as they are extracted)
j - deal with bzipped file
f - read from a file, rather than a tape device
"tar --help" will give you more options and info

After this is done you need to set the PATH
#PATH=$PATH:/opt/csw/gcc3/bin (this command simply specifies which directory to be added)
#export PATH (this simply add the path with the other paths defined before)
#echo $PATH (this simply reflects all the successfully paths added)

Now you check the version of GCC
#which gcc (this will give you the path and the file to where it detects the gcc installation location e.g. #/opt/csw/gcc3/bin/gcc)
#gcc --version ( this will give you the latest version of gcc that you have installed)

Hope that was straight forward and simple to install GCC.
Enjoy and now i am still working on "configure: error: unable to find the required library archive command"

_sa_ 06-19-2012 09:28 AM

Quote:

Originally Posted by piyush128k (Post 4701482)
I made sure the path to GCC works which the default one which is installed in advance as per the command already mentoned in the threads.
Later i pathed into the tared directory of cups 1.6b1 in the root and executed ./cofigure. All seems well except for the last line:-
configure: error: unable to find the required library archive command. I believe it is talking about some libraries which i dont have. Based on the link <<http://www.cups.org/doc-1.1/sam.html#BUILDING_INSTALLING>> i need two kinds of libraries, CUPS imaging libraries and CUPS libraries. I have the first one. the second one is CDSA, TLS and OpenSSL Looking into it. The link says to go to ftp://ftp.easysw.com/pub/ but i have check there as well. Nothing. Mehn! why did i take this up?
SA user, the link you gave does have Sparc and i386. I have used the i386. Neither of the SFW packages mentioned on the link are available either in i386 or Sparc.

Right now i am concerned with :- "configure: error: unable to find the required library archive command" to which not able to find something logical. Mostly people on the internet are copy and past. For installations steps for anything in Unix, they have not mentioned what they did and how. Really Sad!. Once I am done with this. I will do so.

Helpers please keep in mind, I have mentioned in my earlier threads that i am on VM so using x86 and not SPARC

What you really need to do here, is work on the formatting of your posts. It is immensely difficult to parse through what you are writing without the proper spacing in your lines. That is first and foremost. Secondly, you should really be copying and pasting the exact output that you are receiving, along with the error. Use something like pastebin to show your complete output. Here is an example:

http://pastebin.com/4891785G

that is the output from my run of ./configure on the cups-1.6b source. Please paste yours so that we can get a better idea of what you are seeing.

piyush128k 06-21-2012 09:44 AM

Okay, I will be pasting the outs accordingly. However, whenever i type any paragraph, it is directly into the message box provided and it is readable to all my office guys here however, i will start to use word for better reading.

'bash-3.2# ./configure
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... no
checking for ar... no
checking for chmod... /usr/bin/chmod
checking for gzip... /usr/bin/gzip
checking for htmldoc... no
checking for ld... /usr/ucb/ld
checking for ln... /usr/bin/ln
checking for mv... /usr/bin/mv
checking for rm... /usr/bin/rm
checking for rmdir... /usr/bin/rmdir
checking for sed... /usr/bin/sed
checking for xdg-open... no
checking for install-sh script... using /cups-1.5.3/install-sh
configure: error: Unable to find required library archive command.
bash-3.2#

_sa_ 06-21-2012 12:05 PM

Quote:

Originally Posted by piyush128k (Post 4708581)
Okay, I will be pasting the outs accordingly. However, whenever i type any paragraph, it is directly into the message box provided and it is readable to all my office guys here however, i will start to use word for better reading.

'bash-3.2# ./configure
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... no
checking for ar... no
checking for chmod... /usr/bin/chmod
checking for gzip... /usr/bin/gzip
checking for htmldoc... no
checking for ld... /usr/ucb/ld
checking for ln... /usr/bin/ln
checking for mv... /usr/bin/mv
checking for rm... /usr/bin/rm
checking for rmdir... /usr/bin/rmdir
checking for sed... /usr/bin/sed
checking for xdg-open... no
checking for install-sh script... using /cups-1.5.3/install-sh
configure: error: Unable to find required library archive command.
bash-3.2#

I really hate to point this out, but it doesn't seem like you even Googled for this error. The very first result in Google pertaining to the search is specific to CUPS compilation on Solaris 10.

http://marc.info/?l=cups-bugs&m=121601040511545

Here is the link to the Google search:

https://www.google.com/search?q=conf...ient=firefox-a

There are several threads dealing with this same question. You should read and try those suggestions first. If my link doesn't work, then I would suggest trying to Google "configure: error: Unable to find required library archive command."

piyush128k 06-21-2012 12:42 PM

T h a n k y o u ! I d i d g o o g l e a n d h a v e b e e n on i t. E v e n t h e r e a m f a c i n g s o m e i s s u e s . W o r k i n g o n t h a t a s w e l l . I h a v e t h e s a m e l i n k s y o u h a v e s h a r e d . T r y i n g e a c h a c c o r d i n g l y .

piyush128k 06-22-2012 09:10 AM

bash-3.2# cd cups-1.5.3
bash-3.2# ./configure
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for ar... /usr/ccs/bin/ar
checking for chmod... /usr/bin/chmod
checking for gzip... /usr/bin/gzip
checking for htmldoc... no
checking for ld... /usr/ucb/ld
checking for ln... /usr/bin/ln
checking for mv... /usr/bin/mv
checking for rm... /usr/bin/rm
checking for rmdir... /usr/bin/rmdir
checking for sed... /usr/bin/sed
checking for xdg-open... no
checking for install-sh script... using /cups-1.5.3/install-sh
checking for pkg-config... /usr/bin/pkg-config
checking for library containing fmod... -lm
checking for library containing crypt... none required
checking for library containing getspent... none required
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking usersec.h usability... no
checking usersec.h presence... no
checking for usersec.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/ucred.h usability... no
checking sys/ucred.h presence... no
checking for sys/ucred.h... no
checking scsi/sg.h usability... no
checking scsi/sg.h presence... no
checking for scsi/sg.h... no
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for library containing iconv_open... none required
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking for statfs... yes
checking for statvfs... yes
checking for strdup... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for random... yes
checking for lrand48... yes
checking for arc4random... no
checking for geteuid... yes
checking for setpgid... yes
checking for vsyslog... yes
checking for sigset... yes
checking for sigaction... yes
checking for waitpid... yes
checking for wait3... yes
checking for tm_gmtoff member in tm structure... no
checking for st_gen member in stat structure... no
checking for removefile... no
checking for libusb-1.0... no
checking for library containing acl_init... no
checking for DBUS... no
checking if GCC supports -fstack-protector... no
checking if GCC supports -fPIE... yes
checking if GCC supports -Wno-tautological-compare... no
checking whether to build image filters... yes
checking for library containing pow... none required
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzgets in -lz... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_create_read_struct in -lpng... yes
checking tiff.h usability... yes
checking tiff.h presence... yes
checking for tiff.h... yes
checking for TIFFReadScanline in -ltiff... yes
checking for stdlib.h... (cached) yes
checking resolv.h usability... yes
checking resolv.h presence... yes
checking for resolv.h... yes
checking for library containing socket... -lsocket
checking for library containing gethostbyaddr... -lnsl
checking for library containing getifaddrs... no
checking for library containing hstrerror... -lresolv
checking for library containing rresvport_af... none required
checking for library containing __res_init... no
checking for library containing res_9_init... no
checking for library containing res_init... none required
checking for library containing getaddrinfo... none required
checking for library containing getnameinfo... none required
checking for struct sockaddr.sa_len... no
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking for AppleTalk/at_proto.h... no
checking for poll... yes
checking for epoll_create... no
checking for kqueue... no
checking slp.h usability... yes
checking slp.h presence... yes
checking for slp.h... yes
checking for SLPOpen in -lslp... yes
checking for krb5-config... /usr/bin/krb5-config
checking for gss_display_status in -lgss... yes
checking krb5.h usability... yes
checking krb5.h presence... yes
checking for krb5.h... yes
checking gssapi.h usability... no
checking gssapi.h presence... no
checking for gssapi.h... no
checking gssapi/gssapi.h usability... yes
checking gssapi/gssapi.h presence... yes
checking for gssapi/gssapi.h... yes
checking gssapi/gssapi_generic.h usability... no
checking gssapi/gssapi_generic.h presence... no
checking for gssapi/gssapi_generic.h... no
checking gssapi/gssapi_krb5.h usability... no
checking gssapi/gssapi_krb5.h presence... no
checking for gssapi/gssapi_krb5.h... no
checking for __ApplePrivate_gss_acquire_cred_ex_f... no
checking for GSS_C_NT_HOSTBASED_SERVICE... yes
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking for ldap_initialize in -lldap... no
checking for ldap_init in -lldap... yes
checking for ldap_ssl.h... no
checking for ldapssl_init in -lldap... yes
checking for ldap_set_rebind_proc in -lldap... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create using -lpthreads... no
checking for pthread_create using -lpthread... yes
checking for libgnutls-config... no
checking for libgcrypt-config... /usr/bin/libgcrypt-config
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
checking for dlopen in -ldl... yes
checking for pam_start in -lpam... yes
checking for pam_set_item in -lpam... yes
checking for pam_setcred in -lpam... yes
checking security/pam_appl.h usability... yes
checking security/pam_appl.h presence... yes
checking for security/pam_appl.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for long long int... yes
checking for strtoll... yes
checking dns_sd.h usability... no
checking dns_sd.h presence... no
checking for dns_sd.h... no
checking for launch_msg... no
checking launch.h usability... no
checking launch.h presence... no
checking for launch.h... no
checking whether to use network default printers... yes
checking for default print user... lp
checking for default print group... lp
checking for default system groups... "sys root"
checking for pdftops... no
checking for gs... no
checking for java... /usr/bin/java
checking for perl... /usr/bin/perl
checking for php-cgi... no
checking for php... no
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: creating Makedefs
config.status: creating conf/cupsd.conf
config.status: creating conf/mime.convs
config.status: creating conf/pam.std
config.status: creating conf/snmp.conf
config.status: creating cups-config
config.status: creating data/testprint
config.status: creating desktop/cups.desktop
config.status: creating doc/help/ref-cupsd-conf.html
config.status: creating doc/help/standard.html
config.status: creating doc/index.html
config.status: creating man/client.conf.man
config.status: creating man/cups-deviced.man
config.status: creating man/cups-driverd.man
config.status: creating man/cups-lpd.man
config.status: creating man/cupsaddsmb.man
config.status: creating man/cupsd.conf.man
config.status: creating man/cupsd.man
config.status: creating man/lpoptions.man
config.status: creating scheduler/cups-lpd.xinetd
config.status: creating scheduler/cups.sh
config.status: creating scheduler/cups.xml
config.status: creating scheduler/org.cups.cups-lpd.plist
config.status: creating templates/header.tmpl
config.status: creating packaging/cups.list
config.status: creating doc/de/index.html
config.status: creating templates/de/header.tmpl
config.status: creating doc/es/index.html
config.status: creating templates/es/header.tmpl
config.status: creating doc/eu/index.html
config.status: creating templates/eu/header.tmpl
config.status: creating doc/fr/index.html
config.status: creating templates/fr/header.tmpl
config.status: creating doc/hu/index.html
config.status: creating templates/hu/header.tmpl
config.status: creating doc/id/index.html
config.status: creating templates/id/header.tmpl
config.status: creating doc/it/index.html
config.status: creating doc/ja/index.html
config.status: creating templates/ja/header.tmpl
config.status: creating doc/pl/index.html
config.status: creating templates/pl/header.tmpl
config.status: creating doc/ru/index.html
config.status: creating templates/ru/header.tmpl
config.status: creating config.h
bash-3.2#

bash-3.2# make
.
.
. (this is the long execution which happens in between)
.
.
.
In file included from ppdc-array.cxx:29:
ppdc-private.h:15:1: unterminated #ifndef
*** Error code 1
The following command caused the error:
g++ -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -I.. -D_CUPS_SOURCE -I/usr/include/kerberosv5 -I/ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -c -o ppdc-array.o ppdc-array.cxx
make: Fatal error: Command failed for target `ppdc-array.o'
Current working directory /cups-1.5.3/ppdc
*** Error code 1
The following command caused the error:
for dir in cups test filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates fonts; do\
echo Making all in $dir... ;\
(cd $dir ; make all ) || exit 1;\
done
make: Fatal error: Command failed for target `all'
bash-3.2#

I dont know which is the head or tail for this error. I believe there is no straightway of installing CUPS. I am simply putting days and days troubleshooting one error after the other. Most of the Linux, Solaris books dont give you the steps and what all directories need to be set, they just start off like "after you have installed the CUPS" we now come to printer configuration. I know i too am missing on some steps but...
Now i will be searching on this new error.

piyush128k 06-22-2012 01:50 PM

make install error :- Different one

bash-3.2# make
Using ARCHFLAGS=
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -I/ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE -I/ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
Using CC=gcc
Using CXX=gcc
Using DSOFLAGS=-L../cups -R/opt/sfw/cups/lib -L/ -Wl,-hall -G -Wall -Wno-format-y2k -Wunused -fPIC -Os -g
Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -L/ -R/opt/sfw/cups/lib -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g
Using LIBS=-lcups -lz -lpthread -lresolv -lnsl -lsocket -lm
Making all in cups...
Compiling adminutil.c...
Compiling array.c...
Compiling attr.c...
Compiling auth.c...
Compiling backend.c...
Compiling conflicts.c...
conflicts.c: In function `cupsResolveConflicts':
conflicts.c:196: warning: 'active' might be used uninitialized in this function
Compiling custom.c...
Compiling debug.c...
Compiling dest.c...
Compiling dir.c...
Compiling emit.c...
Compiling encode.c...
Compiling file.c...
Compiling getdevices.c...
Compiling getifaddrs.c...
Compiling getputfile.c...
Compiling globals.c...
globals.c:43: warning: missing braces around initializer
globals.c:43: warning: (near initialization for `cups_globals_key_once.__pthread_once_pad')
Compiling http.c...
Compiling http-addr.c...
Compiling http-addrlist.c...
Compiling http-support.c...
Compiling ipp.c...
Compiling ipp-support.c...
Compiling langprintf.c...
Compiling language.c...
Compiling localize.c...
Compiling mark.c...
Compiling md5.c...
Compiling md5passwd.c...
Compiling notify.c...
Compiling options.c...
Compiling page.c...
Compiling ppd.c...
Compiling ppd-cache.c...
Compiling pwg-media.c...
Compiling request.c...
Compiling sidechannel.c...
Compiling snmp.c...
Compiling snprintf.c...
Compiling string.c...
Compiling tempfile.c...
Compiling thread.c...
Compiling transcode.c...
transcode.c: In function `cupsCharsetToUTF8':
transcode.c:179: warning: passing arg 2 of `iconv' from incompatible pointer type
transcode.c: In function `cupsUTF8ToCharset':
transcode.c:304: warning: passing arg 2 of `iconv' from incompatible pointer type
Compiling usersys.c...
Compiling util.c...
Archiving libcups.a...
a - adminutil.o
a - array.o
a - attr.o
a - auth.o
a - backchannel.o
a - backend.o
a - conflicts.o
a - custom.o
a - debug.o
a - dest.o
a - dir.o
a - emit.o
a - encode.o
a - file.o
a - getdevices.o
a - getifaddrs.o
a - getputfile.o
a - globals.o
a - http.o
a - http-addr.o
a - http-addrlist.o
a - http-support.o
a - ipp.o
a - ipp-support.o
a - langprintf.o
a - language.o
a - localize.o
a - mark.o
a - md5.o
a - md5passwd.o
a - notify.o
a - options.o
a - page.o
a - ppd.o
a - ppd-cache.o
a - pwg-media.o
a - request.o
a - sidechannel.o
a - snmp.o
a - snprintf.o
a - string.o
a - tempfile.o
a - thread.o
a - transcode.o
a - usersys.o
a - util.o
ar: writing libcups.a
Linking libcups.so.2...
Making all in test...
Compiling ippserver.c...
Linking ippserver...
Compiling ipptool.c...
Linking ipptool...
Linking ipptool-static...
Making all in filter...
Compiling image-bmp.c...
Compiling image-colorspace.c...
Compiling image-gif.c...
Compiling image-jpeg.c...
Compiling image-photocd.c...
Compiling image-pix.c...
Compiling image-png.c...
Compiling image-pnm.c...
Compiling image-sgi.c...
Compiling image-sun.c...
Compiling image-tiff.c...
Compiling image-zoom.c...
Compiling image.c...
Compiling error.c...
error.c:173: warning: missing braces around initializer
error.c:173: warning: (near initialization for `raster_key_once.__pthread_once_pad')
Compiling interpret.c...
Compiling raster.c...
Linking libcupsimage.so.2...
Archiving libcupsimage.a...
a - image-bmp.o
a - image-colorspace.o
a - image-gif.o
a - image-jpeg.o
a - image-photocd.o
a - image-pix.o
a - image-png.o
a - image-pnm.o
a - image-sgi.o
a - image-sgilib.o
a - image-sun.o
a - image-tiff.o
a - image-zoom.o
a - image.o
a - error.o
a - interpret.o
a - raster.o
ar: writing libcupsimage.a
Compiling bannertops.c...
Compiling pstext.c...
Compiling common.c...
Linking bannertops...
Compiling commandtops.c...
Linking commandtops...
Compiling gziptoany.c...
Linking gziptoany...
Compiling texttops.c...
Compiling textcommon.c...
Linking texttops...
Compiling pstops.c...
Linking pstops...
Compiling imagetops.c...
Linking imagetops...
Compiling imagetoraster.c...
Linking imagetoraster...
Compiling rastertoepson.c...
Linking rastertoepson...
Compiling rastertohp.c...
Linking rastertohp...
Compiling rastertolabel.c...
Linking rastertolabel...
Compiling rastertopwg.c...
Linking rastertopwg...
Making all in backend...
Compiling ipp.c...
Linking ipp...
Compiling lpd.c...
Linking lpd...
Compiling parallel.c...
Linking parallel...
Compiling serial.c...
Linking serial...
Compiling snmp.c...
Linking snmp...
Compiling socket.c...
Linking socket...
Compiling usb.c...
usb-unix.c:561: warning: 'side_cb' defined but not used
Linking usb...
Making all in berkeley...
Compiling lpc.c...
Linking lpc...
Compiling lpq.c...
Linking lpq...
Compiling lpr.c...
Linking lpr...
Compiling lprm.c...
Linking lprm...
Making all in cgi-bin...
Compiling help-index.c...
Compiling html.c...
Compiling ipp-var.c...
Compiling search.c...
Compiling template.c...
Compiling var.c...
Archiving libcupscgi.a...
a - help-index.o
a - html.o
a - ipp-var.o
a - search.o
a - template.o
a - var.o
ar: writing libcupscgi.a
Linking libcupscgi.so.1...
Linking websearch...
Compiling admin.c...
Linking admin.cgi...
Compiling classes.c...
Linking classes.cgi...
Compiling help.c...
Linking help.cgi...
Compiling jobs.c...
Linking jobs.cgi...
Compiling printers.c...
Linking printers.cgi...
Making all in driver...
Compiling attr.c...
Compiling cmyk.c...
Compiling dither.c...
Linking libcupsdriver.so.1...
Archiving libcupsdriver.a...
a - attr.o
a - check.o
a - cmyk.o
a - dither.o
a - lut.o
a - pack.o
a - rgb.o
a - srgb.o
ar: writing libcupsdriver.a
Compiling commandtoescpx.c...
Linking commandtoescpx...
Compiling commandtopclx.c...
Linking commandtopclx...
Compiling rastertoescpx.c...
Linking rastertoescpx...
Compiling rastertopclx.c...
Compiling pcl-common.c...
Linking rastertopclx...
Making all in monitor...
Compiling bcp.c...
Linking bcp...
Compiling tbcp.c...
Linking tbcp...
Making all in notifier...
Compiling mailto.c...
Linking mailto...
Compiling rss.c...
Linking rss...
Compiling testnotify.c...
Linking testnotify...
Making all in ppdc...
Compiling ppdc-array.cxx...
Compiling ppdc-attr.cxx...
Compiling ppdc-catalog.cxx...
Compiling ppdc-choice.cxx...
Compiling ppdc-constraint.cxx...
Compiling ppdc-driver.cxx...
Compiling ppdc-file.cxx...
Compiling ppdc-filter.cxx...
Compiling ppdc-font.cxx...
Compiling ppdc-group.cxx...
Compiling ppdc-import.cxx...
Compiling ppdc-mediasize.cxx...
Compiling ppdc-message.cxx...
Compiling ppdc-option.cxx...
Compiling ppdc-profile.cxx...
Compiling ppdc-shared.cxx...
Compiling ppdc-source.cxx...
Compiling ppdc-string.cxx...
Compiling ppdc-variable.cxx...
Linking libcupsppdc.so.1...
Archiving libcupsppdc.a...
a - ppdc-array.o
a - ppdc-attr.o
a - ppdc-catalog.o
a - ppdc-choice.o
a - ppdc-constraint.o
a - ppdc-driver.o
a - ppdc-file.o
a - ppdc-filter.o
a - ppdc-font.o
a - ppdc-group.o
a - ppdc-import.o
a - ppdc-mediasize.o
a - ppdc-message.o
a - ppdc-option.o
a - ppdc-profile.o
a - ppdc-shared.o
a - ppdc-source.o
a - ppdc-string.o
a - ppdc-variable.o
ar: writing libcupsppdc.a
Compiling ppdc.cxx...
Linking ppdc...
Compiling ppdhtml.cxx...
Linking ppdhtml...
Compiling ppdi.cxx...
Linking ppdi...
Compiling ppdmerge.cxx...
Linking ppdmerge...
Compiling ppdpo.cxx...
Linking ppdpo...
Compiling genstrings.cxx...
Linking genstrings...
Generating localization strings...
Making all in scheduler...
Compiling filter.c...
Compiling mime.c...
Compiling type.c...
Linking libcupsmime.so.1...
Archiving libcupsmime.a...
a - filter.o
a - mime.o
a - type.o
ar: writing libcupsmime.a
Compiling auth.c...
Compiling banners.c...
Compiling cert.c...
Compiling classes.c...
Compiling client.c...
Compiling conf.c...
Compiling dirsvc.c...
Compiling env.c...
Compiling file.c...
Compiling main.c...
Compiling ipp.c...
Compiling listen.c...
Compiling job.c...
Compiling log.c...
Compiling network.c...
Compiling policy.c...
Compiling printers.c...
Compiling process.c...
Compiling quotas.c...
Compiling select.c...
Compiling server.c...
Compiling statbuf.c...
Compiling subscriptions.c...
Compiling sysman.c...
Linking cupsd...
Compiling cupsfilter.c...
Linking cupsfilter...
Linking cups-deviced...
Linking cups-driverd...
Compiling cups-exec.c...
Linking cups-exec...
Compiling cups-lpd.c...
Linking cups-lpd...
Compiling cups-polld.c...
Linking cups-polld...
Making all in systemv...
Compiling cancel.c...
Linking cancel...
Compiling cupsaccept.c...
Linking cupsaccept...
Compiling cupsaddsmb.c...
Linking cupsaddsmb...
Compiling cupsctl.c...
Linking cupsctl...
Compiling cupstestdsc.c...
Linking cupstestdsc...
Compiling cupstestppd.c...
Linking cupstestppd...
Compiling lp.c...
Linking lp...
Compiling lpadmin.c...
Linking lpadmin...
Compiling lpinfo.c...
Linking lpinfo...
Compiling lpmove.c...
Linking lpmove...
Compiling lpoptions.c...
Linking lpoptions...
Compiling lppasswd.c...
Linking lppasswd...
Compiling lpstat.c...
Linking lpstat...
Making all in conf...
Making all in data...
Making all in desktop...
Making all in locale...
Compiling checkpo.c...
Linking ...
Compiling po2strings.c...
Linking ...
Compiling translate.c...
Linking ...
Making all in man...
Converting man pages to HTML...
cancel.1...
cups-config.1...
cupstestdsc.1...
cupstestppd.1...
ipptool.1...
lp.1...
lpoptions.1...
lppasswd.1...
lpq.1...
lprm.1...
lpr.1...
lpstat.1...
ppdc.1...
ppdhtml.1...
ppdi.1...
ppdmerge.1...
ppdpo.1...
classes.conf.5...
client.conf.5...
cups-snmp.conf.5...
cupsd.conf.5...
ipptoolfile.5...
mailto.conf.5...
mime.convs.5...
mime.types.5...
ppdcfile.5...
printers.conf.5...
subscriptions.conf.5...
backend.7...
filter.7...
notifier.7...
cupsaccept.1m...
cupsaddsmb.1m...
cupsctl.1m...
cupsfilter.1m...
cups-deviced.1m...
cups-driverd.1m...
cups-lpd.1m...
cups-polld.1m...
cupsd.1m...
cupsenable.1m...
lpadmin.1m...
lpinfo.1m...
lpmove.1m...
lpc.1m...
Making all in doc...
Making all in examples...
Making all in templates...
Making all in fonts...


bash-3.2# make install
Making all in cups...
Installing data files in cups...
Installing data files in test...
Installing sample ipptool files in /opt/sfw/cups/share/cups/ipptool...
/cups-1.5.3/install-sh: function: not found
/cups-1.5.3/install-sh: -d: cannot open
/cups-1.5.3/install-sh: syntax error at line 68: `}' unexpected
*** Error code 2
The following command caused the error:
/cups-1.5.3/install-sh -d -m 755 /opt/sfw/cups/share/cups/ipptool
make: Fatal error: Command failed for target `install-data'
Current working directory /cups-1.5.3/test
*** Error code 1
The following command caused the error:
for dir in cups test filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates fonts; do\
echo Installing data files in $dir... ;\
(cd $dir; make install-data) || exit 1;\
done
make: Fatal error: Command failed for target `install-data'
bash-3.2#

piyush128k 06-25-2012 10:36 AM

I am told by the CUPS.ORG people that there are 2 bug and i need to use two steps to solve them. Let us see what happens.
1).There is a bug for this one filed STR #4097
2).This is a known bug in install-sh; you can grab a fix from: http://svn.easysw.com/public/cups/trunk/install-sh

piyush128k 07-18-2012 08:15 AM

Sorry for the delay....I got occupied on some other projects...I will soon back on this one.


All times are GMT -5. The time now is 05:33 PM.