Codeblocks /bin/sh: g++: not found

I was having a problem in my Codeblocks running on linux ubuntu 12.04.
My code was compiled without any errors and warning but when I tried to run the code the console was not showing. Then I checked my build log and noticed there was a messege:

“/bin/sh: g++ not found”.

Now here is a quick solution of this problem:

Open terminal and type:

sudo apt-get install g++

This will install g++ for you. You will need an internet connection for that.

First Step into Web Developing on Linux Platform : Frequently Asked Questions, Problems and Solution

[All these problems and solutions are occurred and tested in a Linux Ubuntu 11.10 x86 machine.]

Q. Do I have to install the Apache HTTP Server, PHP, MySQL separately and write codes in the terminal?

Ans: No, there is a stack called XAMPP. XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl.

Q. Pheww! Then how to install XAMPP?

Ans: You can get XAMPP for linux from:

http://www.apachefriends.org/en/xampp-linux.html

Move/Copy the downloaded file (xampp-linux-*.*.*.tar.gz) from your downloads folder to your home folder.

Extract the downloaded archive file to /opt by opening the Terminal and writing:

sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt

(Give your password if promted. Remember, DON’T use any Microsoft Windows tools to extract the archive, it won’t work.)

XAMPP is now installed in the /opt/lampp directory (Look in the File System!).

Q. How to start XAMPP?

Ans: To start XAMPP simply call this command:

sudo /opt/lampp/lampp start

Q. How to test XAMPP if it is working properly?

Ans: Just type in the following URL at your favourite web browser:

http://localhost

Now you should see the start page of XAMPP containing some links to check the status of the installed software and some small programming examples (e.g Flash Art).

Q. Okay, That was sweet! Now I want to know, where to put my websites in XAMPP?

Ans: You will have to ‘Put’ your websites at /opt/lampp/htdocs directory.

But, you will not be able to pasting/moving/writing/overwriting in any directory of the File System.

In Ubuntu, it is protected by a super user account. This ‘root’ log in is disabled by default. But, don’t worry, thanks to our friend called ‘nautilus’, we can access the protected area.

Type ‘gksu nautilus’ in the terminal.

A new file explorer will pop up. You can access all the protected areas by nautilus.

Configuring Aptana Studio 3 for Zend

Open Aptana, Right Click in the project from Project Explorer.

Click ‘Properties’, This will open the ‘Project Properties’. Click on ‘PHP Build Path’.

Click on the ‘External Properties’ tab. Add the directory of the Zend Library folder.

In my case it was: “C:\wamp\bin\php\zend\library”.

Apply and click ‘Ok’.

That’s it!

Got Rid of 404 error of Localhost, WAMP is Finally Runnig.

I was totally screwed up for last two days. Was getting 404 error for my localhost. When i was installing XAMPP I got an error telling me the port number 80 was occupied. and yes, that was true. My Apache server was unable to listen to port 80. Then I edited the ‘httpd.conf’ file from the Apache folder and changed the listening port to 8080 from 80. Then I was able to get the localhost work for me, but by typing in ‘localhost:8080’ instead of a simple ‘localhost’. I had a project running on the Aptana Studio named ‘phpweb20’ and I was not able to run it from my XAMPP server. After failing of all the tweaking I made I then decided to uninstall  XAMPP and use WAMP instead.

Uninstalled XAMPP, installed WAMP. But the error was there. Got a handy tool in WAMP to check who is using my port 80. I found something called Microsoft HTTPAPI. I then searched over Google and found a fix that told me to uninstall MS SQL Server and IIS Server. Then I just simply uinstalled my MS Visual Studio 2010 and after a restart, my WAMP was finally running! 🙂

Now, WAMP has a different folder structure than XAMPP. It has a ‘www’ folder to host projects. I copied my project folder ‘phpweb20’ to ‘www’ and navigated my browser to localhost. The WAMP server was online and I was able to access my project from the landing page of WAMP.

Since, my project was in Zend framework, I will have to install and configure Zend for WAMP. But yet I don’t know how to! My next post will describe how to install and configure Zend for WAMP.

Trouble Downloading components with Android SDK Manager?

‘Bad Record MAC’?!

Don’t get frustrated! If you are not able to connect to the official Android repository by using HTTPS try HTTP instead. You can access this option from the ‘Tool’ menu of the SDK Manager.

 

If you are a windows user and having trouble downloading the components you should disable your anti virus program and try again.