How do I install MinGW on a computer with no internet connection? - c++

I'm learning C/C++, for the learning purpose I will be using netbeans-7.4 installed on my window-8 system.
How do I install MinGW without internet connection ?

On the MinGW HOWTO Install the MinGW (GCC) Compiler Suite page, they offer some Manual Installation instructions. These work without an Internet connection if you can get the installation files to your machine by some other means.
You will need a computer with an Internet connection to download the files for MinGW. But as long as you can put those files on, say, a USB thumb drive or other media, you should be OK. Download the files you'll need for your Windows 8 machine on an Internet-connected machine, and then transfer them to your Windows 8 box. This is what us old-timers sometimes jokingly called "sneakernet."
You will also need a tool like 7-Zip or similar (as noted on the page linked above), to unpack the archives you download. So, if you don't have that tool, you will also have to download that installer from an Internet connected machine and transfer it to your machine by thumb drive sneakernet as well.

Related

Visual Studio 2017 remote code synchronization

I've been developing a c++ project on linux remote server these days, however, I'd like to do all the coding things on my windows machine using VS2017. So I need some kind of synchronization tool to synchronize the codes such that whenever I save the file in VS2017 the changes can be synchronized to the linux server immediately. Is there any tool or VS2017 extension can help me?
I don't want to use git as it may cause a lot meaningless commits.
Several ideas:
Cygwin. Compile your code on the emulated Linux/Unix environment for local testing and use Visual Studio as your IDE. Do final testing on the Linux box with less frequency. Can be combined with any of the ideas below.
Git, but with a different branch for commits. Do a squashed merged for all meaningful commits or pull requests to master.
Samba. Mount your Linux file system on your Windows PC or vice versa. Copy files between Windows and Linux as if was a network drive.
Local VM. Run Linux in a local Virtual Machine with VMWare or VirtualBox. Drag and drop files between Windows host and Linux guest OS using the host/guest extensions stuff. Then you can dink around with deploying to the real Linux machine later.
Personally, for my open source projects where I'm too lazy to boot into Linux locally to test code before deploying to AWS, I basically do some combination with the above.
And #5 of course is: Dropbox. :( I use OneDrive and a Python script on Linux to pull down files.

C++ executable not working on linux based hosting server

I created an static executable for a CGI application in CentOS 64-bit. The program is using cgicc lib. Then I executed the executable on the same machine (where I created executable file) as well as on another CentOS 64-bit machine (where cgicc lib don't exists). On both machines it got executed successfully. But I have a web hosting server there same executable is not working. The web hosting server is linux (64-bit) machine, but not sure of exactly the linux flavor. In log I found internal server error. Even I checked the executable is having 755 permission. Can some one help in finding the reason? Thanks in advance.
My first thought is maybe your hosting server has different kind of CPUs. Different CPUs have different instruction sets, so different c++ compiler may be used for binaries. Like if you want to run some program on embedded system with ARMs, you need a cross compiler for it.

Installing open source web-based software?

new to working with Web Servers and despite my tedious Googling, I think I am missing some of the most general (obvious?) questions regarding how to install an open source web-based program.
I have a dedicated server running CentOS 6, 32GB of RAM, etc........ I used a SSH Client to install the prerequisites of PandoraFMS. Everything installed finE.
Now what, just upload all the open-source files onto the web server?? That's the part I am not understanding about the general process of installing an open source program using build files, do I just UPLOAD it all to my server, or am I missing something???
You use Yum from the command line. Here is a link to the documentation http://www.centos.org/docs/5/html/yum/sn-managing-packages.html. If you really want a linux box that is easy to use I recommend Ubuntu. Good Luck

How Remote Development of C++ works in Netbeans?

Hi we want to use remote development features of netbeans but while trying out on our setup its very slow. I want to understand its feasibility of integrating our build environment with netbeans.
Our setup would be normally:
1. Windows 7 Professional 64bit where we install netbeans
2. RHEL 5.5 64bit linux where we have tools and sources
Normally we directly connect to that machine through PuTTY and use VIM to edit sources and gmake to compile and build projects. Now when I created the "New Remote Project with existing sources" and try to use it It took more time to load the project.
So Can anybody tell me how actually this remote compilation works??
Because we have some GBs of sources here on linux box and I want to know is it possible for smooth development with this big data??
Simple steps. Read this tutorial. You just need a SSH-server on your Linux.
The process is easy, your Netbeans connects to the SSH-server and searches for compilation tools then uses them to build your projects.
The second issue is creating a shared folder that your Windows and Linux able to access to it. I suggest you first create a shared folder on your Windows and use Samba client on your Linux.

pion-network library installation

I have downloaded and installed the pion network library.
I am trying to build the sample web services (HelloService etc). However, I cannot find instructions on how to build the examples.
I am developing on windows7
Check This for build instructions on Windows.
You might also want to see here the compatibility of your windows.