LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 04-02-2010, 10:07 PM   #31
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Ouch!


Looking at the log file, the portion of the file between the Platform tag and the Core tests tag is the configure command trying to determine the nature of machine you are using, and where to look for commands. It's effectively asking, is your machine 32-bit, is it 64-bit, should it look in /bin for commands, should it look in /usr/bin, etc. It then goes on to look for various commands and alternates for them, that it can use to do it's job, like some form of awk.

When it comes to creating a compiler itself, like gcc, there are different types of compilers. There are so called semi-compilers and full compilers. AFAIK, gcc is a semi-compiler, it generally doesn't produce object modules itself directly. Instead it produces assembly language code, and then tries to call the assembler "as" to produce the object modules.

Seemingly it wasn't able to execute the assembler, as indicated by this message:

Quote:
gcc: error trying to exec 'as': execvp: No such file or directory
AFAIK, the "-V" option relates to the version of gcc that is to be run, and together with the "-b" option which relates to the type of machine, determines the specific executable name to be run to do compiling. So this message:

Quote:
configure:2401: gcc -V >&5
gcc: '-V' option must have argument
would appear to have been generated because the configure command may not have been able to determine enough about the type of platform on which it was running, as evidenced by all the "unknown" indicators in the Platform section of the log.

For example if run on my machine, either "uname -p" or "arch" will output "x86_64" because the machine uses a CPU that's compatible with a 64-bit Intel *8*6 CPU.

The getsysinfo command exists on my system, but it's not in /usr/convex, instead it's /usr/sbin.

You might want to make sure that you're running as root, since you'll likely need to be to install cups, and you might either need to adjust the path to help configure find the right commands, provide some options to configure, or hard code some values to tell it what to do, for example, about the type of machine you have.

Often there's a "-h" or "--help" on various forms of configure that's a good place to start.

I know that's not very specific. I'll have to think about a bit more to be more specific.
 
Old 04-03-2010, 03:02 AM   #32
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
OK. So, installed SLITAZ. Ending up getting the version on the swiss mirror, so this is what was installed:

Quote:
Linux slitaz 2.6.25.5-slitaz#1 SMP Sun Feb 8 12:31:31 CET 2009 i686 unknown
I also downloaded the packages ISO.

Poked around, installed cups 1.3.10, that seemed to go OK.

Got cups-1.4.3 source from cups site. Looked at the INSTALL.txt file and started from there.

It was tough going at first using the tazpkg text-based command. I happened upon the tazpkgbox GUI with which I made much better progress, much more easily.

In order to follow the instructions in INSTALL.txt, I found I needed to install these packages:

Quote:
2010-04-03 00:14:07 - Installed - libgomp (4.2.3) - 50d1e3d924d7a374eaef469f81521ad7
2010-04-03 00:14:12 - Installed - gcc (4.2.3) - cdf65335739464a32500b38554ebaaf4
2010-04-03 00:41:43 - Installed - binutils (2.17.50) - 715520b8b044965e3d88bfabe4ca107c
2010-04-03 00:57:53 - Installed - bash (4.0) - 215cf96843a430b4c0019d0e7f144686
2010-04-03 00:57:53 - Installed - glibc-dev (2.7) - 3ee627e7acd93c569d77acae5c73fff0
2010-04-03 01:05:44 - Installed - file (5.03) - 2e32934b124889fa71f4c3193b6a8fd0
2010-04-03 01:10:43 - Installed - linux-headers (2.6.25.5) - 66e89cd22363acf50230e5baadc8b943
2010-04-03 01:14:19 - Installed - autoconf (2.62) - 032914ac750e0a9bb138893e4af3e8f0
2010-04-03 01:17:49 - Installed - libdb (4.5.20) - 2fdf3d6b20ec2f94a5001779509bcf6e
2010-04-03 01:17:51 - Installed - perl (5.10.0) - 03c888a569e13dd0f9d05d3d879c451a
2010-04-03 01:19:45 - Installed - m4 (1.4.11) - b4235b3eff200d0c4ea1f8ceac4e101f
2010-04-03 01:24:13 - Installed - make (3.81) - eacfbe7ca0b27ee2090b3e58d96d0f4f
Then I was able to use the autoconf command to generate a new configure command, as seemed to be mentioned in the INSTALL.txt file. The newly generated configure command seemingly ran pretty much OK. I was then able to run the make command to build cups. make did flag some gzipped manual pages with the phrase "unknown", but just the same seemingly uncompressed all the manual pages.

As you have a somewhat different version of SLITAZ, your situation may be somewhat different. But given that various things did appear to be missing in your situation, you might want to give these packages a shot, as far as their general names are concerned. You might get different versions, since your OS version is different. But some of these packages definitely contain some of the things you were missing.

I found myself more than once having to search for a command on which a package logically depended, but which the package manager did not install along with the package I asked it to install. It appears that either the dependencies weren't set in the packages, or the package manager has some bugs. The tazpkgbox GUI seems pretty decent when it comes to searching for things. It may be as with some package management GUI's, that the GUI actually uses the text based command to do the real work. But the presentation and features of the GUI were very helpful just the same!

Cheers.
 
Old 04-03-2010, 05:26 AM   #33
fopetesl
Member
 
Registered: Jan 2005
Location: Yorkshire Dales, UK
Distribution: Ubuntu 5.10; Mandriva 2007; Debian Lenny
Posts: 147

Original Poster
Rep: Reputation: 15
Angry About up to here...

And about to give up. Which is sad
Too many holes to fill.

I uninstalled gcc 4 and tried to install gcc 3.
What happens? gcc4 is installed. Still no 'as'

We learn something everyday. gcc apparently is described as a "front end" for several compilers.
Can't work out how to get a gcc version which does have a builtin compiler & assembler.

On both Ubuntu OSs this problem doesn't appear. Both churn out an executable.

'uname' on this OS is a symlink to busybox which doesn't provide -p or -X options.

autoconf fails due to a missing depend autom4te which is not in tazpkg packages.

I tried to find your version 2.6 without success.
All I managed to find (on the swiss mirror) was http://mirror.switch.ch/ftp/mirror/slitaz/iso/2.0/
or is this actually V2.6?
 
Old 04-03-2010, 09:37 PM   #34
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Quote:
Originally Posted by fopetesl View Post
And about to give up. Which is sad
Too many holes to fill.
First, I am sorry about your frustration, and I'm sorry if I've misunderstood something.

But I thought you started this thread because you were having problems installing cups on SLITAZ.

So in principle, the goal of the thread was to get cups installed on SLITAZ. You solved that problem yourself, when you changed mother boards. You succeeded, you have installed cups on SLITAZ, yes?

Initially when you asked about going to a later version of cups, I thought you were talking about a packaged binary that the SLITAZ folks had already blessed and packaged for use with SLITAZ, and so should install for you without problems.

When you started compiling the source, I thought you were just doing it for fun. I didn't think you needed to do it.

So unless there are features in the newer version of cups that you require, you do not have to install a newer version of cups. Is that correct?
 
Old 04-03-2010, 10:51 PM   #35
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Hopefully you don't need any newer features in the newer version of cups, and you can continue on to other issues. But in case you are going to continue to work with SLITAZ, or if you actually need to continue to try to compile and install the newer version of cups, you might want the other issues you've raised, to be addressed. I'll try to do that step by step.

Quote:
Originally Posted by fopetesl View Post
I uninstalled gcc 4 and tried to install gcc 3.
What happens? gcc4 is installed. Still no 'as'

We learn something everyday. gcc apparently is described as a "front end" for several compilers.

[...]

On both Ubuntu OSs this problem doesn't appear. Both churn out an executable.
I've worked with Slackware, SuSE/Novell, RedHat, gentoo, various distros, and AFAIK, it works the same way just about anywhere you find it. But in those other environments, the things on which it logically depends have been installed.

If you're trying to compile a C program, gcc will run:

1) "cpp" the C pre-processor

2) what I referred to as a semi-compiler which will take the output of the C pre-processor and generate assembly language code

3) "as" the assembler to produce object modules from assembly language code

4) "ld" or "ld.so" one of the so called linkage editors, to finally produce an executable file.

Quote:
Originally Posted by fopetesl View Post
Can't work out how to get a gcc version which does have a builtin compiler & assembler.
If by built-in you mean package "as" with "gcc", some distros may choose to do that. But gcc itself, per se, is a compiler driver, just as you said. "as" is a physically separate program. In that sense, it's not truly built-in to gcc.

 
Old 04-03-2010, 11:06 PM   #36
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
uname command and kernel versions

Quote:
Originally Posted by fopetesl View Post
'uname' on this OS is a symlink to busybox which doesn't provide -p or -X options.
[...]
I tried to find your version 2.6 without success.
All I managed to find (on the swiss mirror) was http://mirror.switch.ch/ftp/mirror/slitaz/iso/2.0/
or is this actually V2.6?
This command sequence outputs your kernel version:

Code:
uname -r
When I run it on what I've installed, I get:
Quote:
2.6.25.5-slitaz
If you look in the config.log file that you uploaded to this thread, the configure command which you ran to try to build the newer version of cups, displayed this:

Quote:
uname -r = 2.6.30.6-slitaz
So you appear to have a slightly newer version of the kernel than I do. When I mentioned in a previous post that you might need different versions of the packages I loaded to compile the newest version of cups, I said that because I saw that you had a different kernel version.

When I went to download SLITAZ, I tried ibiblio first because I was already familiar with it. But I found that at least one ISO's md5 checksum, computed after download, didn't match the one they had posted. I wondered if the posted md5 was just wrong, perhaps the ISO was OK. Alternatively, I wondered if it was the version you had, and there really was something wrong with the ISO.

I happened to try the swiss mirror next, the md5's matched. I got these four files from the 2.0 directory you mentioned:
Quote:
packages-2.0.iso
packages-2.0.md5
slitaz-2.0.iso
slitaz-2.0.md5
So, yes, the ISO names are different than the kernel versions, and that appears to be true on various mirrors. The ISO's just seemed to be labelled with "2.0" in their names.
 
Old 04-04-2010, 12:13 AM   #37
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Packages, packages, and more packages

Quote:
Originally Posted by fopetesl View Post
autoconf fails due to a missing depend autom4te which is not in tazpkg packages.
You may have a different version of the autoconf package. I installed version 2.62.

/usr/bin/autom4te is in that package along with /usr/bin/autoconf. The package also contains files ending in .pm as well as files ending in .m4. They would normally be perl modules and files written to use the m4 macro processor, respectively.

It was my understanding that those files were not just present so someone could examine the source code. tazpkg depends or rdepends run against the autoconf package seems to show no dependencies. Yet when I tried to use autoconf without installing perl and m4, autoconf did not work. So it appeared that both perl and m4 were needed. This seems to confirm that there are definitely either dependencies missing in the packages, or bugs in the package manager commands.

I was using the tazpkgbox command as much as possible. As root, you just enter it at the command prompt and it launches a handy GUI. There's a search tab where you can enter a phrase, then press either Packages or Files, and it will search for either package names containing the phrase, or filenames containing the phrase, inside packages. It was great for tracking down packages on which other packages logically depend, but which seemingly hadn't been listed as dependencies.

I manually found some packages that weren't found on the server configured into tazpkgbox. They were in the packages ISO: packages-2.0.iso. I copied the packages ISO over to the root of the SLITAZ partition before first booting SLITAZ. So after booting I could mount the ISO like this:

Code:
mount -o loop /packages-2.0.iso /mnt
to have easy access to the packages it contained, without having to burn a DVD.

I found that the assembler /usr/bin/as was in the binutils packages.

Yes, these posts altogether are a lot of text, but hopefully they answer a lot of questions.

Cheers.
 
Old 04-04-2010, 08:49 AM   #38
fopetesl
Member
 
Registered: Jan 2005
Location: Yorkshire Dales, UK
Distribution: Ubuntu 5.10; Mandriva 2007; Debian Lenny
Posts: 147

Original Poster
Rep: Reputation: 15
Unhappy Not given up quite yet.

I don't feel the problem with cups is actually resolved since I need cups to run on this mobo.
OK, it runs on another mobo which only indicates some hardware conflict with this mobo but doesn't solve my problem.

I have attempted to install the latest cups from the cups website in the hope that it will resolve this situation.

In doing so it has exposed a weakness in tazpkg packages dependencies which completely brings me to a grinding halt.

Your version seems to work so my next step would be to download V2 and try again.

However. (Isn't there always).. If I cannot get gcc to generate executables then even with cups running I am stumped.
It is essential I have an OS which will compile to binaries.

Last edited by fopetesl; 04-04-2010 at 08:53 AM. Reason: Forgot a point
 
Old 04-04-2010, 08:58 AM   #39
fopetesl
Member
 
Registered: Jan 2005
Location: Yorkshire Dales, UK
Distribution: Ubuntu 5.10; Mandriva 2007; Debian Lenny
Posts: 147

Original Poster
Rep: Reputation: 15
Exclamation Need more attention span!

Ooops! Should have read your posts more carefully.
If the packages.iso have the "as" do they also have the "ld" also?
i.e. are there the necessary programs there to compile to executables (Newb talking)
 
Old 04-04-2010, 05:01 PM   #40
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Quote:
Originally Posted by fopetesl View Post
Ooops! Should have read your posts more carefully.
If the packages.iso have the "as" do they also have the "ld" also?
i.e. are there the necessary programs there to compile to executables (Newb talking)
I may have not done a good job of expressing it, but in message # 32 in this thread, I was trying to say that I got cups to compile, and I listed the packages I had installed to get it to compile. I thought that would solve your problem.

I believe most of them, the tazpkgbox GUI found from the server, for which a URL comes pre-configured into the command. I just searched for them using the search tab. The others I found manually in the package ISO with the tazpkg command.
 
Old 04-05-2010, 05:59 AM   #41
fopetesl
Member
 
Registered: Jan 2005
Location: Yorkshire Dales, UK
Distribution: Ubuntu 5.10; Mandriva 2007; Debian Lenny
Posts: 147

Original Poster
Rep: Reputation: 15
Question Start from scratch?

Thanks, kakaka. It seems it's down to me not absorbing everything you have done.
The answer for me, if I wish to persue Slitaz, is to follow your path.

What puzzles me is two things:
1) Why cups runs on one motherboard but not another. If I begin again using your method is cups still likely to fail?
2) Why there is an obvious difference between installing programs from on-line vs. installing from the iso.

It seems it will take me the best part of a day to reDo-from-start which right now I do not have.

If/when I do have the time I'll come back and report here.

Thank you again for your input and persistence.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't successfully install a bittorrent client in 12.2. pravlin Slackware 10 04-06-2009 05:46 AM
Has anybody successfully install GnoChm on OpenSuse 10.2 ? Setya SUSE / openSUSE 7 05-02-2007 11:53 PM
Why Won't Net_SSLeay Install Successfully?? njugs79 Linux - Newbie 5 04-07-2005 02:24 AM
Did I successfully install Java? carlosinfl Linux - Software 11 03-13-2005 07:28 PM
successfully install kahakai? calvin_wang Fedora 0 03-28-2004 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 08:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration