LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble Installing Software from ANY Distribution (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-installing-software-from-any-distribution-602023/)

CyberInfantry 11-23-2007 11:18 PM

Trouble Installing Software from ANY Distribution
 
I think I may have been born without that thing that most people have that tells them what they are supposed to do next, or even how to start.

For the past 8 months I've been considering delving into linux. I finally bit the bullet and installed Ubuntu 7.10 on my big beefy desktop after my third re-install of Windows in two weeks.

Immediately, I am hit with the same problem I've been being hit with ever since I even started thinking about switching over on a permanent basis.

I am completely inept at installing things.

Ideally, it runs like this.
unpack
./configure
make (as root?)
make install

Right? Well, that has never worked for me. Not on Kubuntu, Ubuntu, or Slackware 11.0.

I've done a little delving. This whole linux thing is completely new to me, but I thought I'd at least try to do a little research on my own. I've read a couple of how-to's, but they never seem to address my problems.

My most recent occurrence happened with the installation of nmap. This is from a fresh installation of Ubuntu 7.10 desktop edition for 32bit systems. I've installed all the updates it told me to, I've enabled my restricted network and video card drivers...

And apparently I am lacking a C compiler?

Every distro I've tried (from the impressively long list above... -.-) has yet to come with a C compiler. Isn't that supposed to be the most common method of installing programs on Linux is to compile them from source? It never works for me. I've read the "INSTALL" files that appear after I unpack. I've looked for "README" and "SETUP" files to read as well. The only clue I find that something is wrong is when I do "./configure" and it DOES somehow work, it quickly stops at "make" with the error that I have no C compiler.

So then I quest out to find out "how do I obtain a C compiler"? And here is another obstacle: it seems like everyone else just assumes the distro comes with it.

So... I guess I'm just at a loss. I've got no idea what to do next. How do I fix this? Is there something I can tell a distro before I install it that ensures it comes with these very necessary utilities?

I would love to embrace a free computing experience. I would love to eventually develope my own programming talent and be able to contribute.

Maybe I'm just too dumb for linux.

System Specs:
ASUS A8N-SLI Premium Motherboard
AMD 64 4000+ 2.4ghz overclocked to 2.64ghz
2gb Corsair XMS DDR-400 RAM
400gb Western Digital SATA Hard Drive
BFG nVidia GeForce 7900 GTX 512mb PCI-Express graphics card

ciden 11-24-2007 01:57 AM

You have overclocked your cpu. A noob, huh?


Just in case you are serious, why dont you try a package manager.?

try installing gcc(GNU c compiler) using aptitude or synaptic.
Then compile all u want.

btmiller 11-24-2007 03:11 AM

For (KXU)buntu:

Code:

apt-get install build-essential
to install a basic build environment. Really, though, you should install from APT as much as possible rather than compiling fromsource. It tends to make for easier installs/removals of software.

CyberInfantry 11-24-2007 10:30 AM

I had gotten this from a google search result of
"C compiler cannot create executables" and "ubuntu 7.10"

Even this would not install because I do not have GTK+ or whatever.

Code:

sudo aptitude update
sudo aptitude install build-essential
gcc -v

[Edit]
I just tried the
Code:

apt-get install build-essential
and got the following as a response:

Code:

BlahBlah@BlahBlah-desktop:~$ apt-get install build-essential
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
BlahBlah@BlahBlah-desktop:~$ sudo apt-get install build-essential
[sudo] password for BlahBlah:
Reading package lists... Done
Building dependency tree     
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
BlahBlah@BlahBlah-desktop:~$ wtf?
bash: wtf?: command not found


CyberInfantry 11-24-2007 10:36 AM

Please forgive the double post...
 
Quote:

Originally Posted by btmiller (Post 2969133)
For (KXU)buntu:

Code:

apt-get install build-essential
to install a basic build environment. Really, though, you should install from APT as much as possible rather than compiling fromsource. It tends to make for easier installs/removals of software.

Where do you find what all is available on the apt? What is apt? Just a package management system?

And for that matter, when something is installed from source, apt, or synaptic, how do you access it? O.o

DragonSlayer48DX 11-24-2007 11:22 AM

Quote:

Originally Posted by CyberInfantry (Post 2969359)
Where do you find what all is available on the apt? What is apt? Just a package management system?

And for that matter, when something is installed from source, apt, or synaptic, how do you access it? O.o

Yes, apt is a package manager. Synaptic is a graphical front-end for apt. It can be found in the System -> Administration menu. Once opened, it will show the available packages in the Ubuntu repositories, and you can select them for download from the window. Once a package is installed, Synaptic will show where the launcher icon was placed.

Also, to add to btmiller's statement, compiling from source can cause a lot of trouble if you're not sure what you're doing.


Cheers

CyberInfantry 11-24-2007 12:48 PM

I googled "first things to do after installing ubuntu 7.10" and got a pretty good list. It took care of most things through apt-get, and then I went and explored through Synaptic.

I was really impressed with the amount of code available on those programs. I have no idea how many I installed that I had no need of and such, but it did make it easier for getting zsnes and other programs. :P I'll have to look again for nMap.

My only concern with the package manager is timely availablity:
do code developers post updates to the package managers automatically? is every bit of software available for Ubuntu (or Linux in general) available on those package managers? How reliable are they as a source for programs?


Thank you, any who add to this thread. :)

DragonSlayer48DX 11-24-2007 01:18 PM

Personally, I'd say the repositories are the most reliable source for new programs, as the packages have been tested for compatibility and stability with your distro before being added. Also, when you install through the package manager, the program is automatically added to the automatic updates list. And yes, new packages are constantly being added to the repositories as they become available.

Cheers

birdbrained 11-24-2007 09:43 PM

A newbie with suggestion, for another newbie.
 
I cannot tell you anything about a c compiler but I have a question. Did you try Puppy Linux? I think Puppy Linux is great for first timers.It is small and up to date. Due to it's size,you can install it just to ram.You can also try it out without installing it to your hard drive.An already burned cd can be purchased at Osdic.com for $1.95 plus postage.The language used in Puppy is user friendly.
Do you still have Windows on your computer? You can try Puppy out ,just in ram,to see what you think. If you don't like it,don't save it and it won't affect your Windows.It might be possible to have both Windows and Puppy on your computer simultaneouly.
To install Puppy,you would have to set your computer to boot from the cd. That won't affect Windows unless there is a cd in the drive.
Experts,have I said anything incorrectly? Have I left anything out? Please review what I have written.I just sense this person has feelings I had when I was thinking of converting to Linux. Someone suggested Puppy Linux to me. I have really enjoyed learning about it.

CyberInfantry 11-25-2007 03:12 AM

I *just* reinstalled Windows XP, and I am about to set it up to dual-boot Ubuntu. I really like the linux feel, but there are some needs that only Windows can meet right now.

I will give Puppy a try. Thank you for the suggestion. :D Lots of my friends are telling me that once I really do get things stuff figured out, it's really quite fun.

I really appreciate everyone's contributions to this thread. Thank you all very much!


All times are GMT -5. The time now is 08:03 PM.