Linux noob questions...

Gibson486

Lifer
Aug 9, 2000
18,378
2
0
2 questions...

1. The yum command....

how does this command know what to do? If I just type 'yum install eclipse' it will install eclipse....however, there are different versions (C/C++, Java, etc). How do I know which will install?

2. When I try to run synaptic, get these errors:

E: opening /var/lib/apt/lists/download.fedoraproject.org_pub_fedora_linux_updates_14_i386_repodata_57fac9b07704226dc30643b75333c49436756d6e8a556784093ecfcd39474c2c-primary.sqlite db failed
E: Unsupported database scheme (0)
E: opening /var/lib/apt/lists/download.fedoraproject.org_pub_fedora_linux_releases_14_Everything_i386_os_repodata_72f870f3e28571eda6bed2c260d245a970fcc74786c5445e847a40890e1c471f-primary.sqlite db failed
E: Unsupported database scheme (0)
E: The package lists or status file could not be parsed or opened.

What is going on?


edit/update:

I ran 'yum install eclipse'. It installed the Java IDE. How do I install the C/C++ one? I downloaded it from the website, but it's a tar file. I double click it, then I just moved it to the desktop. The EXE is there to run it, but how do you actually install it so you can get to it via the "Applications" menu.
 
Last edited:

lxskllr

No Lifer
Nov 30, 2004
60,929
11,263
126
Does it run like that? If so, just run it that way. Create a shortcut to the executable(.exe?!), and put it somewhere convenient.
 

LumbergTech

Diamond Member
Sep 15, 2005
3,622
1
0
Learn how to install things in linux and do it manually instead of relying on yum or apt-get. You will probably just end up at some point with something that doesn't work and have no idea how to deal with it. For instance, the C++ problem you are having.... I ran into that right away when I was beginning to learn linux and there are ways to get around it, but its easier to just download the version of eclipse that you want and install it. You basically unpack the program and then make a symbolic link in your bin directory so that you can run it from the command line.
 
Last edited:

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You want to install another package then, the default eclipse package is Java so you need to install eclipse-cdt to get the C/C++ dev tools for it. I'm running Debian, so a quick 'apt-cache search eclipse' told me the package name, 'yum search eclipse' should be similar.
 

lxskllr

No Lifer
Nov 30, 2004
60,929
11,263
126
You want to install another package then, the default eclipse package is Java so you need to install eclipse-cdt to get the C/C++ dev tools for it. I'm running Debian, so a quick 'apt-cache search eclipse' told me the package name, 'yum search eclipse' should be similar.

Maybe fedora doesn't have it? Before I posted, I looked through Synaptic in Ubuntu, and didn't see anything related to C.
 

Gibson486

Lifer
Aug 9, 2000
18,378
2
0
Learn how to install things in linux and do it manually instead of relying on yum or apt-get. You will probably just end up at some point with something that doesn't work and have no idea how to deal with it. For instance, the C++ problem you are having.... I ran into that right away when I was beginning to learn linux and there are ways to get around it, but its easier to just download the version of eclipse that you want and install it. You basically unpack the program and then make a symbolic link in your bin directory so that you can run it from the command line.

that is what I thought, but everytime you go to a tutorial site or do a google search, it always says do yum or apt-get. Personally, I find that annoying. I ended up downloading the the file from the eclipse.org website and it worked fine. I just untarred it and it was ready.Doing it with yum or apt-get seems unintuitive.

Doing more research, I see that the program does not really use the OS resources as a normal program would because the program is written in Java, so it just runs on the JRE and there is no need to "install" it. It does the same thing in Windows too.

For future reference, when you download a tar file, you

1. un tar and note directory
2. go to un tarred folder in terminal
3. Type, "make"
4. Type, "make install"

As for symbolic link...never did that. I did try to mount a usb drive to copy a driver....that sucked and I forgot how to do it already.

The new issue I am having now is that my touch pad is sensitive as hell in fedora. It goes crazy when I try to use it.

Also, is it me, or is ubuntu more user friendly than fedora?
 
Last edited:

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Gibson486 said:
Doing it with yum or apt-get seems unintuitive.

Then you're not thinking about it right yet. Packages in the Debian, Fedora, etc repositories are maintained by someone with a lot more knowledge about the target OS and the application itself than I care to know. I have no idea how much effort the Eclipse devs have put into making their software work well in Debian, but I know the maintainer of the eclipse package's primary concern is how well it runs on Debian and it's cohesion with the rest of the system. I don't like to worry about stuff that I don't have to.

Gibson486 said:
Doing more research, I see that the program does not really use the OS resources as a normal program would because the program is written in Java, so it just runs on the JRE and there is no need to "install" it. It does the same thing in Windows too.

Kinda, yes. But I think you should still use the official packages so that you get automatic updates, icons, menu entries, etc.

Gibson486 said:
For future reference, when you download a tar file, you

Depends on the tar file. You need to read the README included with each one for proper build, installation and usage instructions.

Gibson486 said:
Also, is it me, or is ubuntu more user friendly than fedora?

Depends on the environment to which you're accustomed, as with all things. I absolutely can't stand Fedora or RHEL, so Debian and Ubuntu feel natural to me.
 

Gibson486

Lifer
Aug 9, 2000
18,378
2
0
I went back to Ubuntu (10.04).

I looked for eclipse-cdt. could not find it from the command line or the software center.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I went back to Ubuntu (10.04).

I looked for eclipse-cdt. could not find it from the command line or the software center.

Which is the only version of Ubuntu that packages.ubuntu.com doesn't list it for, like lxskllr mentions above.
 

lxskllr

No Lifer
Nov 30, 2004
60,929
11,263
126
Which is the only version of Ubuntu that packages.ubuntu.com doesn't list it for, like lxskllr mentions above.

Which makes perfect sense. I couldn't imagine anyone who does C development wanting to use an LTS release :^D