UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello All,
I have installed Ubunto in VMware on windows vista. It was working fine without any problem. But when i tried to compile a C language program it was not able to find the *.h files. So I tried to fetch these libraries through "sudo aptitude" command. I am new to this command, by mistake all the system files got deleted, like GRUB, terminal etc etc...
When I am trying to install these files through Ubunto CD, system is not able to recognize the CD drive itself. I tried to boot the linux again, but even its not rebooting. Please Somebody can help me in this regard. How to get back my linux??
Hello All,
I have installed Ubunto in VMware on windows vista. It was working fine without any problem. But when i tried to compile a C language program it was not able to find the *.h files. So I tried to fetch these libraries through "sudo aptitude" command. I am new to this command, by mistake all the system files got deleted, like GRUB, terminal etc etc...
When I am trying to install these files through Ubunto CD, system is not able to recognize the CD drive itself. I tried to boot the linux again, but even its not rebooting. Please Somebody can help me in this regard. How to get back my linux??
Regards
I am not very familiar with Ubunto but I think now it is better for you to reinstall it. Be careful that for developing (i.e. programming) you need gcc + stdlibc + kernel headers. For header files you can check them in /usr/include.
The default Ubuntu install is quite minimal (as it's easy to add stuff later once you get the hang of apt-get or synaptic package manager), so doesn't include all the tools to do gcc compilation. To get it working type:
> sudo apt-get install build-essential
After this gcc will work. If you've broken your system as much as you suggest then I agree with the second poster that you should reinstall. In general I'd advise doing as much work as possible (including compilation) as a normal user, as this will reduce the chance of breaking the system in future.
Sir, as I am using VMWare on Window vista, Do I need to create a new Virtual machine? What will happen to this allocated space for Ubuntu? Will this allocated space will go waste, can I recover it back?
It'll be easier to re-install using the same VM. If you installed ubuntu from an iso file, then "Edit virtual machine settings" to point your VM's CDROM to the ubuntu install iso file and reboot the VM. If you installed using a physical CD then ensure the VM's CDROM points to a real CDROM drive, insert the linux CDROM and reboot the VM.
From there do a full default ubuntu install which will delete everything from the virtual disk.
In future if you *really* want to delete VMs, you can do it in VmWare server by right-clicking on the VM and selecting "Delete From Disk". An alternative method is to find the directory containing the VM (on my windows box they're in C:\Virtual Machines), and delete it. If you do this, first ensure that VMware isn't running the VM! This deletion would reclaim your disk space. You can then create a new VM with no lost space.
Thanks everybody for all the useful answers. I could install Linux again and working well. I have installed the libraries. But could not get Fortran libraries. Will please anybody have information about fortran complier in Ubuntu?
I think you need to learn how to investigate this stuff for yourself. Googling for "ubuntu fortran" returns quite a few results. There's some stuff on ubuntu forums (http://ubuntuforums.org). However in this case your first port of call should be synaptic package manager. Use the search facility to search for "fortran" to show all packages that use the word in their description. I chose "gfortran" simply because it sounded suitable. You could equally well do
> sudo apt-get install gfortran
as AFAIK synaptic is just a front end for aptitude. You'll also find packages with attached version numbers in there. Usually the packages without version number are special packages that pull in the latest version of the package you want.
The install showed several libraries being installed. I don't know if the ones you need are included, but you'll find out when you try to compile your code. After this gfortran was available on the command line.
rmallins@mockturtle:~$ gfortran --help
Usage: gfortran [options] file...
Options:
-pass-exit-codes Exit with highest error code from a phase
--help Display this information
--target-help Display target specific command line options
(Use '-v --help' to display command line options of sub-processes)
...
...
rmallins@mockturtle:~$
Sir, as I am using VMWare on Window vista, Do I need to create a new Virtual machine? What will happen to this allocated space for Ubuntu? Will this allocated space will go waste, can I recover it back?
It just creates a file ,just delete it if you don't like it
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.