Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have not found much in google searches regarding this subject, so I believe I am not forming the query properly, thus this posting. This may be a bit long, but I figure more initial information is better than less.
Is it possible to have 'make install' update the rpm database so that 'rpm -qa' sees the software I have just compiled?
Here is why:
I am running a CentOS 6.5 server in a virtual machine. My company will soon be transitioning from Azure to Google App Engine. Thus I need to be able to access a M$ database and MySQL from the same codebase, which will reside on this CentOS VM. I suppose I could create an api on the M$ server for communication with the Azure DB, but that could get messy. I found instruction that msodbcsql makes this possible, which requires unixODBC 2.3. I have not found an rpm of unixODBC 2.3, so I ran './configure; make; make install' and that appears to have succeeded, but rpm -qa does not see it and nor does the msodbcsql install script. Does anyone have any insight in this situation?
Software not packaged as RPM by default is outside of the scope of the RPMBD. It makes no sense quality assurance-wise to even think it should be otherwise.
If RPMForge or EPEL don't have the package for CentOS then wget unixODBC-2.3.1-7.fc20.src.rpm to your staging host, build as unprivileged user and test.
Can you be a bit more descriptive? Most of my experience is solely for web purposes, so building packages is definitely something new. Does 'staging host' mean the host OS?
Can you be a bit more descriptive? Most of my experience is solely for web purposes, so building packages is definitely something new. Does 'staging host' mean the host OS?
I think by 'staging host' he means the system that you use to build, test and manage packages. This might be a separate machine, a VM or the system you are installing to depending on your own usage.
I am not an RPM user since about 2005 so I won't give any (possibly wrong) advice, but you will find a guide for building from src.rpm on CentOS here.
I have not found much in google searches regarding this subject, so I believe I am not forming the query properly, thus this posting. This may be a bit long, but I figure more initial information is better than less.
Is it possible to have 'make install' update the rpm database so that 'rpm -qa' sees the software I have just compiled?
Here is why:
I am running a CentOS 6.5 server in a virtual machine. My company will soon be transitioning from Azure to Google App Engine. Thus I need to be able to access a M$ database and MySQL from the same codebase, which will reside on this CentOS VM. I suppose I could create an api on the M$ server for communication with the Azure DB, but that could get messy. I found instruction that msodbcsql makes this possible, which requires unixODBC 2.3. I have not found an rpm of unixODBC 2.3, so I ran './configure; make; make install' and that appears to have succeeded, but rpm -qa does not see it and nor does the msodbcsql install script. Does anyone have any insight in this situation?
Cheers,
danilo
Instead of compiling; make it an RPM. Then it would be in the RPMDB
Indeed with "staging host" I meant a workstation, VM or any suitable and prepped non-production machine. Should you, after having read the documentation, have any specific questions about building packages let us know. There's a few people here who know the package building process from experience.
While the output of 'rpm -qp --scripts --triggers --dump unixODBC-2.3.2-2.el6.i686.rpm' looks sane, there is no GnuPG key to verify the integrity of these builds. If you built these yourself (I see a build date not too long ago) then thank you, but please first 'rpmbuild -k' them. Without a description of who built these, for what platform and supplying a key packages shouldn't be shared in this way. If we don't set an example and teach users sane admin practices they might think this practice is acceptable, and that should be avoided at all cost.
*An alternative could be to just share a .spec or a .src.rpm package so anyone is forced to build the package themselves.
Last edited by unSpawn; 12-31-2013 at 04:01 AM.
Reason: //More *is* more
Ok, all of that seemed to work. What php functions do I call? I looked through a list of get_defined_functions(). There does not appear to be any function names containing 'odbc'. Should I be looking for something else?
It appears not to have been successful. PDO::getAvailableDrivers() does not list anything for mssql nor odbc (only dblib & mysql). Have any of you successfully done this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.