Ubuntu Installation :: Change Compiler For A Single Shell?

Feb 11, 2010

I have upgraded my machine to Karmic, and thereby getting gcc/g++ 4.4 in the process. I have some code that requires gcc/g++ 4.3.

I can change the compiler system wide by redirecting the symbolic link from 4.4 to 4.3

Code:
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.3 /usr/bin/gcc

but i would like to have it done per session instead.

View 9 Replies


ADVERTISEMENT

Ubuntu :: Writing A Single Shell Script To Change Preview Settings And A Launcher's Icon

Mar 22, 2010

I want to write a single shell script that allows me to, once executed from a panel launcher, change the image preview setting between "local files only" and never. Right now i have two tiny scripts, one for local files only and another one for never, that is:

[Code]...

and the other says string "local_only". But that means i need to have two launchers, because i don't know how to write the condition <<when set to never, change it to local only. And is it possible to make a script that also changes the launcher's icon when the preview config is set to one or the other value? That way i'd know what it is set to just by looking at it. It would act as a diagnostic and therapeutic tool XD

View 9 Replies View Related

Fedora :: Multiple Gcc Compilers - Change The Default Gcc Compiler?

Oct 2, 2009

I have multiple gcc compilers in my laptop, how can I change the default gcc compiler?

View 2 Replies View Related

Programming :: Change The Compiler Pgi To Intel - P4_error: Interrupt SIGSEGV: 11

Jul 9, 2010

I changed the complier PGI to Intel. But i had some error message p4_error: interrupt SIGSEGV: 11 This error message was occured using intel compiler I don't know what is the ploblem.

View 2 Replies View Related

Networking :: Up-/download Rate For A Single Host (from Shell)?

Jan 25, 2011

I have a slave node uploading all kinds of backups to my server in the internet. Now I would like to display the actual upload and download rate to this server (not the entire nic-traffic, any protocol) in a small php-page for easy monitoring.I had a look at quite some monitoring tools and the one which kind of offers what I am looking for is iftop with a filter on the IP of my server. As I would like to periodically update a file with the actual rates, an interactive program won't do. A possibility would be to filter the packages myself using but this seems to be quite a long shot.The optimal solution would be a program or script printing out the actual upload to a host specified in the options to STDOUT

View 3 Replies View Related

Software :: Shell Script Single Step Debugging?

Aug 5, 2011

Does anyone know of a way to single-step through Bash shell scripts in order to debug? (similar to the way Windows 98 used to let you single-step through autoexec.bat)

View 2 Replies View Related

Ubuntu :: Change To Single Mouse Click / Make Icons Tinier Than Default / Change Icons

Mar 12, 2009

In Ubuntu 810.. how do you set the mouse for one click to open an item..?What is that software that sets Trash's empty feature at the bottom of the right click on trash..? I had it, but I can't find it for this new install.Is there a way to default the cursor to half its minimum size, and customize its color to blues..?Is there a way to force the desktop toolbar icons to half of their minimum default size..Is thee a way to change the "Ubuntu Icon + Applications/Place/System" to just three different colored tiny spheres, without the Ubuntu icon..?

View 1 Replies View Related

General :: Capture Reponse Of 20 Different URL Hits In Single Shell Script?

Aug 5, 2010

I need to execute 20 urls in one shell script and display there responses on the console and write on text file too. consider the case when url is not responding.

View 4 Replies View Related

Programming :: Take A Single Line Of Input From User In Shell Script?

Mar 10, 2011

How do i take a single line of input from the user in a shell script?

View 3 Replies View Related

General :: Shell Script To Extract Single Report By Pattern Then Both Backward And Forward

Feb 18, 2010

I have to admit that I register to LQ after I failed to search for similar solutions.let me see whether I can explain my problem clearly. I need to extract a single report from a big file. The big file looks something like this:

Report for yyyyyy
Your info 999-9999999
End of Report

[code]....

I need to search for a user provided string, say 999-9999999, in the big file. Then I have to extract the single report. My logic is simple,

1) find 999-9999999
2) backward search for "Report for", note down the line number
3) forward search for "End of Report", note down the line number
4) extract the record by using info found from step 2) and 3).

I am trying to do this in bash, with awk and sed (I am new to both).

View 8 Replies View Related

Software :: Build A C Compiler Without An Existing C Compiler?

Dec 14, 2010

So for those of you who has built GCC from source would know that you can't install GCC without an existing GCC. So my question is, what would happen if all computers in the world suddenly just died, and all you had was the computer in front of you, and a copy of GCC 4.5. How would you install that?

I ask because I would like to install GCC 4.5 on my old powerbook G4 mac without installing a binary GCC provided by Tiger 10.4 disks. I would like to build GCC from source, without an existing GCC to complicate updating.

View 6 Replies View Related

Ubuntu :: 9.10 - How To Change Single Menu Icon

Feb 2, 2010

I'm slightly puzzled trying to change the icon on my single "gnome main menu" button. I've added it to a panel and gone to gconf-editor aps>panel and there is no objects folder on my home pc (which is a installed version of 9.10). In work I do the same steps on an install of 8.04 and it works fine. The only difference I can think of is on 8.04. I add the menu to the bottom panel that ubuntu has by default and at home its a panel I've added. I cant get a custom icon for my main menu in 9.10!

View 2 Replies View Related

Programming :: Change Or Add Paths For The Compiler To Look In When Using The "<>" Operator?

May 12, 2010

My compiler won't find <new>. Since it's such a basic function, I'm a bit confused. Is <new> supposed to be in a file of its own? Where do I find it? And if it turns out to be missing on my computer, where can I find a <new> one? Or do you see anything else that I do wrong?

After some trying out, it seems I can't find stuff like iostream or any other basic stuff either. The compiler is prolly looking for them at the wrong place. Does anyone know how I change or add paths for the compiler to look in when using the "<>" operator?

View 2 Replies View Related

CentOS 5 :: Change The Resolution Of Single User Mode?

May 31, 2009

At least I think it's called single-user mode. I don't have a GUI for my CentOS install. It boots up to a terminal. The text is too big though. Is there any way to reduce the text size?

View 4 Replies View Related

Ubuntu Installation :: How To Get Compiler Arm-elg-gcc

Jan 7, 2011

I wonder how to get compiler arm-elg-gcc. IS this compiler obtained in a classic GCC? Where do i find it and how do i install it?

View 1 Replies View Related

General :: How To Change To Single User Mode In Dump Script?

Apr 26, 2010

I have this dump script that performs either full or incremental backups depending on the day of the week. From what I have read, when using dump you should drop to single user mode to help prevent the backups from being inconsistent before you issue the dump command. What I want is the script to drop to single user mode, perform the backups using dump, and then go back to runlevel 3 after the backups complete.

I know when you enter init 1 to drop to single user mode, but doing so within a script reboots the computer and drops it to single user mode and the rest of the script doesn't complete.What would be a good method for me to be able to accomplish what I want to do? Do I need to run other scripts that would call mine?I am running Centos 5.4

View 1 Replies View Related

Ubuntu Installation :: How To Update My Compiler

Mar 11, 2010

I'm making a program using Java now..and my compiler i think is not updated..i think it does not contain a library for jframe..

The terminal displayed code...

View 3 Replies View Related

Ubuntu Installation :: Add A New Compiler To Be Used In Bash?

Mar 11, 2010

we are using a tool to simulate a basic computer, called TOY now this TOY has its own compiler and linker, which i will need to use in order to use *.asm files in this simulator how do i add the commands "toyasm" and "toylink" to be used in my linux bash? i have the files "toyasm" and "toylink" provided by the lecture's materials, and already managed to copy them into /usr/bin, where i found the "gcc" compile command already (been using that one before) but now i get "permission denied" when i try to use the new ones. what to do when i want to add custom compilers to my system?

View 6 Replies View Related

Ubuntu Installation :: C++ Compiler To Build Exe?

Apr 30, 2011

if this is possible: I would like to build windows application (exe) using NetBeans in my Ubuntu 10.10, coding in C++.

View 7 Replies View Related

Software :: Installation Of G77 Compiler In Ubuntu

Mar 8, 2011

I need g77 compiler to run few programs. I tried to install g77 by sudo apt-get install command , but i failed to do as it showed there are no packages of g77. how can i install g77 in Ubuntu. Is there any alternative process to install g77 from any tar file.

View 2 Replies View Related

Ubuntu Installation :: Can't Find The Option Foe The G++ Compiler

Jul 29, 2010

I cannot install g++ on my ubuntu...i can't find the option foe the G++ compiler in the Ubuntu Software centre...and while typing G++ in the terminal I get a message that tells me to add some pentium...

View 1 Replies View Related

Fedora Installation :: C And C++ Compiler ?

Aug 10, 2009

Im using Fedora 10, and I need to install a c, and c++ compiler. I've downloaded codeblocks, but when i try to compile and run the code, nothing will happen. What other compiler should i use? what is the best c++ compiiler for fedora?

View 5 Replies View Related

Ubuntu Installation :: Install A Certain Compiler Version (downgrading Of G++)?

Mar 16, 2010

currently i am trying to downgrade my version of g++ compiler in my ubuntu 9.10using synaptic, deselecting current 4.4.1 version and adding desired 4.1.2 version will result in g++ not being recognized in terminal anymore :(also sudo apt-get g++will only get me the latest 4.4.1

View 1 Replies View Related

Ubuntu Installation :: No Acceptable C Compiler Found In $PATH

Feb 28, 2011

Error: no acceptable C compiler found in $PATH.
I have an ubuntu 10.10

View 1 Replies View Related

Software :: Installation - Unable To Use Gcc Compiler

Mar 19, 2010

i have installed fedora linux 7.0 but i have done mistake i guess i m unable to use gcc compiler,i cant run my programs using cc.so how can i install it now over fedora,any links to software or i should reinstall it again

View 6 Replies View Related

Install :: Default Compiler With Installation Of OpenSUSE?

Apr 15, 2010

Is there a standard compiler provided with the install of openSUSE?
Like gcc...

View 9 Replies View Related

Ubuntu :: Trying To Change Default Shell And Failed?

Jun 9, 2011

i'm pretty new to ubuntu. I was "playing" trying to change my default shell and failed. Now, after logging in, i open a terminal window and type "su". Ubuntu asks me a password, i give my password and i get this error "unable to execture /bin/bsd-csh: file or directory does not exist". Any idea on how to solve this problem restoring my old shell.

View 2 Replies View Related

General :: Change PS1 When SH (Shell) Out Of VIM

May 19, 2010

I've had my prompt change whenever I :sh (:shell) out of VIM, but can't for the life of me remember how?. The idea is to change the prompt to something like [SH] <your usual prompt here>, so that I know that VIM is running in the background.. I often logout of the shell, because I think VIM is open.

View 3 Replies View Related

Ubuntu :: How To Write Shell Script To Change Resolution

Aug 6, 2010

Writing a Shell script which changes my X11.org config to 800x600 from any other resolution .

View 1 Replies View Related

Ubuntu :: Write Shell Script To Change Resolution?

Sep 23, 2010

Canceled a sys backup in progress now my Waste bin is at max and must be emptied.However OpenSuse 11.3 contradicts itself by claiming there is 0 in the waste bin? Perhaps there is a Bash command that would solve the problem

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved