I have an issue with my JuliaPro installation:
I want to add a function in the Cbc C interface, but all I have in my JuliaPro installation directories are include files and dynamic libraries.
Can I keep my JuliaPro installation as is and still have access to the Cbc source or do I need to go back to a standard installation ?
Many thanks,
Related
I have file which has extension JDK.
Can anyone please tell What does it mean.
How to open it.
I have tried note pad it was showing data but with special character.
I need formatted data.
The Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (javadoc) and other tools needed in Java development.
When you install a JDK it extracts a folder to a path and it's named as jdk{version}.
I'm guessing that you're using a mac because JDK's look like jdk{version}.jdk in macs. This can be found at /Library/Java/JavaVirtualMachines. However, you can open this just like another folder. But if that's not the case, you can hold control and click
the file with the extension .jdk and select show package contents.
As far as using it, you usually set it up as your JDK in your IDE.
I have an open source tool that I want to make available from Chocolatey. Right now the application is just an EXE and config file (and a couple extra dlls). Can I build a package for just these files or do I need to create an installer first? If I can do it without the installer, is there an example of this? If using a MSI is a better practice, I can create one.
Thanks,
Mike
Yes, you can create a package just for those files without creating an installer first.
Those kind of packages are usually referred to as portable packages (packages that do not require administrative privileges to install).
Basically all you need to do, is add the files inside the package, create a VERIFICATION.txt file which details how moderators can verify the binaries (remember to also include that you're the software author), and a LICENSE.txt (can be named differently) with the license of the software.
An example of such a package would be my own package for electrum-ltc.portable:
https://chocolatey.org/packages/electrum-ltc.portable
I am learning C and I want to install MinGW on my laptop. The MinGW installer is a web-installer, it requires the computer to have access to the internet when installing. But the problem is that my computer's not connected to the internet. So it can't be installed.
So I am thinking of downloading the complete offline installer on my smart-phone and transfering it to my PC through blue-tooth.
I have already tried TDM-GCC, but even that requires me to download somthing.
So is there an offline installer to MinGW? If yes where can I get it?
I did not find an offline installer for MinGW,but instead I found a better Windows port; which is MinGW-W64
From http://mingw-w64.yaxm.org/doku.php:
Mingw-w64 is an advancement of the original mingw.org project, created to support the GCC compiler on Windows systems. It has forked it in 2007 in order to provide support for 64 bits and new APIs. It has since then gained widespread use and distribution.
Now to answer this question: it has to be mannually installed by downloading the zip file. It won't require additional download.
You can download it from link : https://github.com/jonasstrandstedt/MinGW
You need to extract the MinGW folder in C:\ eg: c:\MinGW . Then what you need to follow the steps given in the link above. In CodeBlock IDE go to settings>compiler>Tochain Executables. There you need to click on auto detect or specify the folder manually.
The most direct answer to the question "Is there an offline MinGW installer?" is "maybe, but it would be a snapshot from the past, and it's almost certainly not up-to-date with the latest available released versions." The individual packages are made available (almost) as soon as they're released, so capturing everything in a self-contained installer is a moving target.
But, you can use the standard installer offline with a bit of prep work if you use MSYS2's pacman, which manages dependencies and grabs all the right versions for you.
The details are given in an answer to another question (https://stackoverflow.com/a/46791235/).
I would like to practice and prepare to use a server-based PostgreSQL database, for an upcoming school assignment.
The assignment will require me to write programs in C that can execute a variety of queries, as well as check their validity, etc.
I cannot find any definitive guide online to setting up PostgreSQL with Visual Studio and C.
I understand that I need to use a libpq-fe header file but when I download it from PostgreSQL and #include it, I still get linking errors and more. It's a mess.
Can someone guide me (and future users with this problem) through the process of setting this up?
You can't just download libpq-fe.h and expect to use it without anything else.
You must use libpq - include at least libpq-fe.h, link to libpq.lib and ensure that libpq.dll is present in the program runtime path. On Visual Studio that means editing your include path and library path, then adding libpq to the linker list.
I usually do a source build of PostgreSQL when I'm working with libpq, but I'm pretty sure the library and headers are included in the binary install as well. Check the install directory.
First of all you need to read this : http://pqxx.org/development/libpqxx/browser/trunk/win32/INSTALL.txt
This will tell you how to install or build libpq on your computer.
Personally, I just install PostgreSQL for Windows from the PostgreSQL official website.
This should avoid the need for building libpq.
Now that you have all the required files libpq.lib, libpq-fe.h,libpq.dll etc...You have to set the properties page of your VS project correctly i.e do exactly as specified in the INSTALL.TXT
Once the properties pages is set correctly add :
#include <string>
#include "libpq-fe.h"
#pragma comment(lib, "libpq.lib")
For further information read this tutorial : http://www.askyb.com/cpp/c-postgresql-example/
For Linux packages, specifically RPMs with stored checksums, we always can check two things: the contents of package is ok and the installation from this package is ok. When someone modifies parts of the installation he shouldn't, we can see it by running rpm -Vp my-precious-package. In our busyness it is not only recommended, but obligatory to provide our packages with tools for this purpose and for Linux these are just simple bash scripts.
Now I have to do something similar for Windows. Basically what I want is to provide some batch file by running which one can get assured, the installation is the same as it meant to be in the package. I'm using InstallShield for packaging, and yet it has some great visual tools, I still haven't found a way to verify package checksums in the command line.
Is it even possible, or should I reinvent the wheel writing my own checking utils?
Take a look at MakeCat and SignTool from Microsoft, both in SDK
http://msdn.microsoft.com/en-us/library/windows/desktop/aa386967%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa387764%28v=vs.85%29.aspx
Windows Installer has a feature called resiliency that supports auto repair of products and there are ways to call it for self checks only. (This is assuming by InstallShield you mean Windows Installer based projects.)
Here's a couple links to read to get you started:
INFO: Description of Resiliency in Windows Installer
Resiliency
Application Resiliency: Unlock the Hidden Features of Windows Installer
MsiProvideComponent function (See dwInstallMode flags)
This also assumes all files are key files. Companion files are not managed by the installer. Also changes performed by custom actions outside of the installer aren't managed.