gcc and g++ not provided by the webhosing machine - gcc

All,
In a webserver if gcc and g++ are not provided by the hosting service to the user.Can we download it and compile through it in RHEL5 OS.
If so please provide the suitable link to download it.
Thanks......

A web hosting provider is unlikely to give you compilers on the hosting box for your use. They will expect you to do your development on your own box and copy the executables to theirs.
That's if they even allow arbitrary code running on their machines at all - they may if you get your own VM but, if you're sharing resources with any of their other customers, I'll guarantee you'll be restricted in what you're allowed to put on their machine (and, unless you're in your own little VM, it's rightly still their machine - all you do is pay for the ability to use their server infrastructure).

If you have terminal access
su -
yum groupinstall "Development Tools"

You cannot download RHEL; it is not gratis. You can however download and use CentOS free of charge.

Related

Debian Stanalone Installation

I am trying to install Debian in a system that does not have any network connection at the time of installation. Is there any way to do so rather than ordering a DVD from Debian vendors? Is there any specific ISO file that I could install from without the internet on the destination computer.
Debian has several installation methods, the most common are to install the ISO DVD that contains a desktop environment (the one you like), along with all the basic packages. Another installation method for systems that you are going to use as servers or similar, is the netinstall installation. You do not need to have an internet connection to install Debian, after installed, you can connect it, configure the repositories and then start installing the packages you need. At the following URL you can find various ISOs for each processor architecture.
https://www.debian.org/CD/http-ftp/

How to install windows updates on multiple clients using YUM on CentOS server

I need to do a installation of windows updates (OS and Microsoft Security Essentials) on multiple clients using Cent-OS Server. I'm not very familiar with Linux systems and I cant find an appropriate tutorial On the internet.
Give OPSI a try, this is an OpenSource Deployment Solution which works on CentOS:
http://www.opsi.org/
This is an integrated system to deploy full installation as well as simple updates or rollouts.
yum installs RedHat/CentOS/Fedora RPM packages on RedHat/CentOS/Fedora systems. It doesn't have anything to do with Windows. It doesn't understand exe files or anything like that.
I'm not even sure where to begin to understand what the question you are actually trying to ask is... unless your question is really just as confused as it sounds and you are failing to understand the difference between package managed linux systems and Windows systems.

I have a windows pc, can I develop with LAMP?

I have a pc running windows but I want to use a linux server. Is there a way for me to develop my website on my computer before I rent space on a server? Also its probably important to note that I have no linux experience. Should I just stick with wamp?
Unless you specifically and purposely use .NET features in your PHP Application, then an application developed in WAMP will work fine on a LAMP Server as long as you have included all the same PHP plugins.
PHP is independent from Linux or Windows. 99.9% of the time you have to knowingly use features from the host OS.
You should try ubuntu in a virtualbox, there are lots of well written guides that'll get you up and running.
For best performance, use coLinux. Install a linux distro like ubuntu (easier for beginners) and you should be ok.
Yes. I have developed and maintained a website like this before. My development environment was WAMP and the server was a LAMP shared server. Shouldn't be a problem till your site is using fairly basic libraries and they are available both for windows/linux.
However as others mentioned, its wiser to have the development environment as close possible to the production environment. You don't hit any surprises that way. And hey its not difficult and involves no cost:
You can use dual boot to have linux as other operating system.
Depending on your machine, you can just install VirtualBox and install a Linux VM.

Solaris (SPARC) development environment

I'm working on a cross-platform application for which I would like to include Solaris/SPARC support but I no longer have access to a server. I have an OpenSolaris VM on VirtualBox but I don't know of any SPARC VM which I could use to compile and test on. Did I miss something? Otherwise, do you know of solaris/SPARC shell account services with the gcc toolchain, preferably free ones?
That question is similar to this one. I haven't seen anything about Solaris running on qemu, otherwise you can get SPARC hosting for $10 at polarhome.
You can get a free SPARC emulator from http://www.stromasys.ch/virtualization-solutions/virtual-sparcstation/.

Developing Linux software on Windows

I want to write software for the Linux platform, but I would like to do this on a Windows OS. I'm only developing Linux software for a remote server of mine, so it wouldn't be worth it to switch to Linux just for that. I don't think it's as simple as using a cross-compiler, because I will be writing code that uses headers specifically for Linux, and I would like to test the programs on Windows. I don't want to use VirtalBox etc.
If possible, install the entire development environment on the linux server. Then install an Xserver (e.g XMing) and an ssh client (e.g putty) on your Windows box. Then run the dev. environment remotely.
The big pro of doing this is that the linux windows integrate seamlessly in the Windows enviornment. I used to work with dual platform development and had a virtual linux box on my PC. Still, I used ssh+X-forwarding to access it. This way I got full copy-paste support etc. between the environments.
Now WSL (also known as "Bash on Windows") exists, you can run native Linux binaries directly on Windows. With snapcraft you can package Linux applications entirely under Windows, without using a VM. Might be a better option. I made a super quick video to explain it.
CoLinux allows you to run linux side-by-side with Windows.
You could try VirtualBox and virtualize a Linux environment from within Windows. I do the reverse of what you are trying to do and run Windows from Linux, and it works quite well.
If you are familiar with .NET and C# you can use Mono for your client.
You can use Visual Studio to develop and the Mono runtime one Linux to run the application.
You do need to keep away from windows specific code.
Maybe Cygwin could help. You don't need an entire virtual machine and only the api is emulated.
You could use g++ in cygwin to target a linux binary. It's a pain to setup as you noted you'll need the entire toolchain (not just the compiler). I've used crosstool (domain name makes me giggle every time) in the past with success. It looks like someone did the work already http://metamod-p.sourceforge.net/cross-compiling.on.windows.for.linux.html
However I've never targeted linux from windows. I'd install a virtual linux box, way easier and you're likely going to want to do your testing on a real linux box before going live.
Cygwin isn't linux so you can't test your linux binaries there.
Out of curiosity what's keeping you from doing the development on linux? If the server the app runs on isn't mission critical you could even develop there.

Resources