New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add the install target #52
Comments
Please provide more details about this issue since I am not sure I can understand it. |
|
Contributions are welcome. |
We will need Perhaps it would be better to deprecate the hard-coded library paths and move to using |
Hi Jeff,
Currently you can install .nwchemrc in /etc/nwchemrc to set this as a system wide default. That might help.
Huub
…-----------------------------------------------------------------------------------------------------
Hubertus van Dam, 631-344-6020, hvandam@bnl.gov
Brookhaven National Laboratory
From: Jeff Hammond <notifications@github.com>
Reply-To: nwchemgit/nwchem <reply@reply.github.com>
Date: Thursday, August 23, 2018 at 3:57 PM
To: nwchemgit/nwchem <nwchem@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: Re: [nwchemgit/nwchem] Please add the install target (#52)
We will need make install to install not just the binary but the basis set and pseudopotential library folders, although the latter paths are hard-coded into the binary prior to this step, so we need to add a level of indirection or rebuild the relevant object file to know about the installed path and relink the binary. I've had to solve this problem manually enough times that I will try to work on the solution here.
Perhaps it would be better to deprecate the hard-coded library paths and move to using nwchemrc more. We could put nwchemrc in /usr/share/nwchem/ and have the binary look there first, followed by ~/.nwchemrc.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#52 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AEcvnn7hCNc7gfT0MgLHh_A2mLxXiCR6ks5uTwkAgaJpZM4WKNH2>.
|
The problem that I observed with this is that |
@yurivict |
According to GCC docs:
Looking at if (ipass.eq.1) then
call util_getenv('HOME',home)
nwchrc=home(1:inp_strlen(home))//'/.nwchemrc '
elseif (ipass.eq.2) then
nwchrc="/etc/nwchemrc"
else
return
endif
open(unit=69,file=nwchrc(1:inp_strlen(nwchrc)),
+ form='formatted',status='old',err=9999) the action is not specified. Now, I would expect Linux builds to use GCC and thus succeed on the second attempt ( |
open /etc/nwchemrc as read-only (issue #52)
I have to consult the
package()
procedure from the Arch port https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nwchem-gitNormally makefile should install the package into
$(DESTDIR)$(PREFIX)
, so that such question would not arise.The text was updated successfully, but these errors were encountered: