Re: [Freesurfer] License problem

2013-06-13 Thread Claus Svarer
Thanks again for the answers, I have now got it working. It was my 
fault, I thought the name should be libcrypt.so and not as I found out 
it should be libcrypt.so.1.


So the solution for OpenSUSE 12.3 (64 bit) is to copy e.g. 
/lib64/libcrypt-2.14.1.so from an OpenSUSE 12.1 installation to 
freesurfer_home/lib. and then make a symbolic link to that, like ln 
-s libcrypt-2.14.1.so libcrypt.so.1 (also in freesurfer_home/lib). 
Actually the LD_LIBRARY_PATH already included this directory (even two 
times) while I have the command source 
$FREESURFER_HOME/SetUpFreeSurfer.sh in the .profile (we are using bash 
shell).


Thanks for the help

Claus




On 12-06-2013 19:13, Z K wrote:

Yes, I agree. Setting/appending to the LD_LIBRARY_PATH should be the
last thing you do just before issuing a freesurfer command. At the
moment Im unsure of the details regarding various Freesurfer scripts,
and their ability to retain environment variables, but I would guess
that information is preserved since knowledge FREESURFER_HOME and
SUBJECTS_DIR is so often required.

If the /etc/csh.cshrc.local works than that is a good method as well.

We will be looking into this Opensuse 12.3 libcrypt
incompatibility, but shy of a new release of freesurfer (which is very
unlikely) the solution will almost certainly involve using the older
version of libcrypt and setting the LD_LIBRARY_PATH.

-Zeke

On 06/12/2013 01:01 PM, Nick Jones wrote:

Hi Claus,

I don't know what to say, it worked for me.

Make sure the permissions on the library file are ok, and confirm that
the LD_LIBRARY_PATH path is set properly before launching the freesurfer
command (the system should check that first).  I'm not sure if when
launching certain commands, freesurfer creates new shells that don't
have the variable set properly, which breaks it.  I set mine at shell
invocation using /etc/csh.cshrc.local and so that may make the
difference, but as you say, it is risky to override the system libcrypt.so

Thanks

Nick


On 06/12/2013 02:53 AM, Claus Svarer wrote:

Thank you for all the answers, I am sure it has something to do with
this crypt shared library as when I replace the /lib64/libcrypt.so
with the OpenSuse 12.1 version tkmedit can start. This is though a bit
risky as there may be other routines including the operating system,
that uses the new updated library.

Unfortunately, the proposed solution about copying the libcrypt.so to
freesurfer/lib and then add that path to the $LD_LIBRARY_PATH does not
work. Any other idea about how to make the old libcrypt.so accessible
to freesurfer routines?

Thanks
Claus


On 11-06-2013 20:00, Z K wrote:

Thank you Nick for informing the list of this workaround.

-Zeke

On 06/11/2013 01:48 PM, Nick Jones wrote:

Regarding any license issue under Opensuse 12.3 and the libcrypt
incompatibility.

So grab a libcrypt from an older opensuse (one where freesurfer was
working, for me, I used libcrypt.so from 11.3, but 12.1 may be a better
candidate if it works).  Place it somewhere ($FREESURFER_HOME/lib is a
good candidate), then add the location to the LD_LIBRARY_PATH
environment variable so that freesurfer finds the old libcrypt.

There is another workaround but you must contact Nick Schmansky, I
don't
remember the details.

Thanks

Nick




The information in this e-mail is intended only for the person to
whom it is
addressed. If you believe this e-mail was sent to you in error and
the e-mail
contains patient information, please contact the Partners Compliance
HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to
you in error
but does not contain patient information, please contact the sender
and properly
dispose of the e-mail.




___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


attachment: Claus_Svarer.vcf___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


[Freesurfer] License problem

2013-06-11 Thread Claus Svarer

Hi

We have just updated one of our Linux servers from OpenSuse v. 12.1 to 
12.3. After the update we get the following license error message  for 
some of the freesurfer commands:


csvarer@hevesy:/usr/local/nru/freesurfer tkmedit -help
--
ERROR: Invalid FreeSurfer license key found in license file 
/usr/local/nru/freesurfer/license.txt

  If you are outside the NMR-Martinos Center,
  go to http://surfer.nmr.mgh.harvard.edu to
  get a valid license file (it's free).
  If you are inside the NMR-Martinos Center,
  make sure to source the standard environment.
--


W have another server still running the older OpenSuse version and there 
it works without any problems. There hasn't been done any changes to the 
freesurfer installation directory and it is the same shared NFS mounted 
directory at both servers. Please help us finding out how to correct 
this problem so we can use Freesurfer again.


Thanks for the help
Claus Svarer
attachment: Claus_Svarer.vcf___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] License problem

2013-06-11 Thread Claus Svarer

Hi Doug

After having sent the message to the mailing list this morning I found 
another mail sent to the mailing list a month ago about same problem:


http://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg28264.html

I have tried to follow the thread but can't see that a solution was 
described. I therefor tried to email Nicola Toschi directly, but he has 
not answered yet. Let us see if he has found a solution for the problem.


Kind regards
Claus

On 11-06-2013 16:46, Douglas Greve wrote:


Hi Claus, I have never seen this before. Maybe Zeke has an idea?
doug




On 6/11/13 5:02 AM, Claus Svarer wrote:

Hi

We have just updated one of our Linux servers from OpenSuse v. 12.1 
to 12.3. After the update we get the following license error message  
for some of the freesurfer commands:


csvarer@hevesy:/usr/local/nru/freesurfer tkmedit -help
-- 

ERROR: Invalid FreeSurfer license key found in license file 
/usr/local/nru/freesurfer/license.txt

  If you are outside the NMR-Martinos Center,
  go to http://surfer.nmr.mgh.harvard.edu to
  get a valid license file (it's free).
  If you are inside the NMR-Martinos Center,
  make sure to source the standard environment.
-- 




W have another server still running the older OpenSuse version and 
there it works without any problems. There hasn't been done any 
changes to the freesurfer installation directory and it is the same 
shared NFS mounted directory at both servers. Please help us finding 
out how to correct this problem so we can use Freesurfer again.


Thanks for the help
Claus Svarer


___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer




___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


attachment: Claus_Svarer.vcf___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.