OK, the upgradeGemStone fight has started [readlink -f issue in OSX]

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

OK, the upgradeGemStone fight has started [readlink -f issue in OSX]

GLASS mailing list
Hi Dale,

OK, I am giving a try to upgradeGemStone. I am first trying to make it work in my local machine (OSX) before trying in server. So the first problem I found is this:

   GsDevKit script: stoneNewExtent -n -s /debris/Sites/mariano/gemstone/data/extent0.dbf quuveNew
=================
readlink: illegal option -- f
usage: readlink [-n] [file ...]

The culprit line seems to be:

s) snapshotFile=`readlink -f ${OPTARG}` ;;

And yeah, it seems -f has problem in OSX.

I found this link:


A solution like the first one would be better in the sense that not every OSX user must do anything. But for now, I am fine with installing via brew and make an alias. However, I tried and even if the `which` answers correctly:

% which readlink
readlink: aliased to greadlink

The stoneNewExtent still fails. Seems like if alias wouldn't be present at that point. (I added them to my .zshrc and opened a new terminal)

Of course, manually changing stoneNewExtent to use greadlink rather than readlink did make it work. 

Thoughts?


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: OK, the upgradeGemStone fight has started [readlink -f issue in OSX]

GLASS mailing list


On 10/8/15 1:07 PM, Mariano Martinez Peck via Glass wrote:

> Hi Dale,
>
> OK, I am giving a try to upgradeGemStone. I am first trying to make it
> work in my local machine (OSX) before trying in server. So the first
> problem I found is this:
>
>    GsDevKit script: stoneNewExtent -n -s
> /debris/Sites/mariano/gemstone/data/extent0.dbf quuveNew
> =================
> readlink: illegal option -- f
> usage: readlink [-n] [file ...]
>
Yeah I am aware of this problem and it is one of things I plan to
correct (soon) in the GsDevKit_home version of the script (upgradeStone)...

Dale
_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass