Install my basic Linux stuff--Linspire 4
I'm here trying to install some basic Linux stuff, mostly stuff like Automake, Autoconf, M4, etc., stuff I haven't seen a binary for, and understand that there are so many variants between machine to machine that these packages must be compiled to work properly. ...and it seems that they have cross-dependencies, where I need Automake to install Autoconf or M4, Autoconf needs M4 and Automake, M4 needs both Automake and Autoconf, etc. ...and I also need to know where my $PATH statements are defined, as M4 is actually telling me there is no "cc" in $PATH. If I can figure out where my paths are defined at the moment, I think I may accidentally be able to get back moving on my dependency adventures. This is on Lindows 4, before they changed the name to Linspire (now Five-O), and I'm trying to get my modem working under it, as it has software for my ISP ready to go. I actually wish I could port it to Fedora. :mad:
|
If you would like help with your technical problems, make it clear what kind of help you expect. I suggest you read `smart questions':
http://www.catb.org/~esr/faqs/smart-questions.html --Jonas |
I can extract the following question:
"I also need to know where my $PATH statements are defined." ... I take it that's a question? Have you done "echo $PATH" in terminal? This should tell you what your PATH is pointing to. You can append directories to your PATH using cat(1). But you should know this... you've been around long enough! |
Quote:
A: what I'm trying to do B: what my hangup or trouble is It's amazing what you can find by reading the post! ...speaking of which... Quote:
Also, notice that I have laid out a depency circle--Automake and Autoconf require M4, M4 and Autoconf require Automake, etc.... That's another part. ;) |
Path Statements: I don't know offhand - I could find out.... but why do you need to know? To modify the path, you can append paths or even rewrite them totally. (man export)
Circular dependancies are not possible. Remember - the developer had to compile from these same files. However, it can look like that sometimes. Can you give us the exact packaged and show which dependancies go where? (Look carefully at the dependence request - the package numbers may be a little different, or it is calling for a development package or a library.) There is another possibility - you realise that Linspire has it's own special packages that you pay for? |
Apologies - the reply deleted here was supposed to go to a different thread. <ahem>
|
I must know where the path statements are defined if I am to continue with Linspire, as my ISP software is available for Linspire, but I'm having to compile in my own modem drivers. Since I use dial-up, and Click-N-Run requires an internet connection (so it's blocked by the lack of a modem driver). I cannot get those "special" packages (that does violate the GPL since they make a profit off of my purchase), so I'm downloading the tarbals of the newest Automake, Autoconf, M4, GCC, etc. and am trying to compile them in via the traditional Linux method--Configure, Make, Make-Install, and so on. If I am to tell Linspire where Automake is, as one prime example, I must add that folder to the path statement. I don't want to throw the compiled package in under somewhere like /sbin due to the likelyhood of replacing files, and therefore losing the system. Instead, I want it somewhere like my user-defined path--/usr/System/Automake/automake-version.
Again: I need to put folders in my path statement so that I can compile tarballed packages without replacing stuff. If I can do that, maybe I can go on. Also, the Man project does not exist in Linspire. :mad: Why the freak did they take it out? :cry: My attempt of echoing $PATH just gave me a list of the folders currently in the path statement. Wasn't much use, even with me trying to vi the $PATH. |
Lets say you have stuff in /usr/fu/bar you want in the PATH ... do this:
Code:
echo $PATH Quote:
|
Thanks. ...since I can put folders into the path, how can I get them out, in the event that I inadvertantly add the wrong folder, or that folder is later removed (or replaced, IE, a new Automake in its own folder, I don't want to use the old Automake, though I may not remove the files just yet).
|
Removing a string from an environment variable is more tricky - you have to pipe the variable to a CLI text editor first. It's usually simpler just to rewrite the entire line. To avoid typos - just echo the variable to the terminal, then copy over bit you want to keep.
export OLDPATH=$PATH echo $PATH <highlight bit you want to keep: copy> export PATH=<paste> OLDPATH in case you make a mistake For this reason, a common strategy is to create a directory off ~/ to hold links things you want to run. Then put that directory in your path. You'd also want to create a directory for temporarily installed libraries the same way. So you'd put things like a depreciated automake in there along with everything else you wanted to keep to one side but useable. Careful though - what happens if two executables with the same name are in your path (albeit in different places)? Considering the nature of your questions, you want to read your way through "info coreutils". Please note - the abbreviation for "id est" (that is) is i.e. (or ie) not IE, which is "Internet Explorer". I'm sure you didn't mean the latter. |
Thanks. Not only are you helping me big time, but you're also giving me an idea I've never thought about before with that temporary path folder thing. I like that idea. ;)
As far as using the info command, it's gone too. :mad: I have nothing from the TLDP, so I guess I may want to go back and see about putting it in when I get my modem working (but first, I must get GCC, M4, Automake, Autoconf, and all that so as I can compile my driver. ) I'm essentially, at the moment, rebuilding a distribution of Linux to get my hardware to work. :p Where is the path statement actually contained? From all this echo and export stuff I'm having to work with, I'm guessing it may be compiled in the kernel, whereas in somewhere like DOS, it was placed in the AUTOEXEC.BAT file, and was easily adjusted to fit my needs. I just went off and assumed that Linux was similar, and have yet to find the containing file. |
Quote:
Code:
/etc/profile Quote:
Code:
$ cc hth --Jonas |
lectraplayer: I've been looking further at linspire - though it gets good reviews for it's install - I must admit some concern over a distro officially sanctioning users to do everything as root. You are strongly urged to consider another distro.
Suggest Ubuntu or Fedora - since you value linspire's strengths. |
Quote:
Also, where's the Linspire source code? :scratch: GPL requires it! To me, Linspire's just currently a liberation/recovery tool at the moment, and it will likely be soon disposed of due to its aparant tendency to "be like Windows". ...and yes, its replacement will likely be someone like Fedora or SuSE. I like 'em both! |
All times are GMT -5. The time now is 10:59 AM. |