Skip to content
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

installation #16

Open
socm12 opened this issue Dec 8, 2018 · 5 comments
Open

installation #16

socm12 opened this issue Dec 8, 2018 · 5 comments

Comments

@socm12
Copy link

socm12 commented Dec 8, 2018

During installation MATLAB version 9.3.0 (R2017B)

##################################################################
Checking what application we are installing SEIZMO in...
Application: MATLAB
Version : 9.3
SEIZMO install path: F:\MATLAB\seizmo
Warning: Function isstring has the same name as a MATLAB builtin. We suggest you rename the
function to avoid a potential name conflict.

In path (line 109)
In addpath (line 94)
In install_seizmo (line 167)
In install_seizmo (line 120)
Warning: Function vecnorm has the same name as a MATLAB builtin. We suggest you rename the
function to avoid a potential name conflict.
In path (line 109)
In addpath (line 94)
In install_seizmo (line 167)
In install_seizmo (line 120)
Error using fullfile (line 51)
String input not supported.

Error in savepath (line 40)
templatefile = fullfile(matlabroot, 'toolbox', 'local', 'template', 'pathdef.m');

Error in install_seizmo (line 213)
ok=ok & ~savepath;

Error in install_seizmo (line 120)

@g2e
Copy link
Owner

g2e commented Aug 18, 2019

Yeah, apologies the seizmo available on github is very borked with recent Matlab versions. I hope to upload a fixed version soon.

Thanks for reporting - didn't know Matlab sucked in my vecnorm function (too bad they modified the input order so I'll have to delete mine and alter the calls in seizmo).

@yzhou1989
Copy link

Firstly, Thanks for your to provide this code.
When I add SEIZMO to dynamic path of MATLAB (2019a) at Ubuntu 18.04 with startup_seizmo.m, there are two warnings as follows:

Warning: Function isstring has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.

In path (line 109)
In addpath (line 86)
In startup_seizmo (line 21)
Warning: Function vecnorm has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
In path (line 109)
In addpath (line 86)
In startup_seizmo (line 21)

Actually, they will induce fatal error.

I slove this problem as follows:

  1. Rename the filename isstring.m to is_string.m, and vecnorm.m to vec_norm.m, respectively.
  2. Replace isstring to is_string in all m-files in the folders and subfolders with command:
    sed -i “s/isstring/is_string/g” grep isstring -rl ./
    sed -i "s/vecnorm/vec_norm/g" grep vecnorm -rl ./

I hope this information is useful for the SEIZMO users.
Thanks again for you.

@yzhou1989
Copy link

Another two update in setup_seizmo.bash are as follows:
line 40-42:
wget ftp://ftp.soest.hawaii.edu/gmt/gshhg-gmt-2.3.7.tar.gz
tar axvf gshhg-gmt-2.3.7.tar.gz
mv gshhg-gmt-2.3.7.tar.gz ..

line 57:
mv master.zip export_fig.zip

@waddah100
Copy link

Dears
I am trying to install seizmo on MATLAB 2015A (8.5.XXXX) 32bit, but many errors comes and I don't know what to do, the following comes upon running install_seizmo.m :

install_seizmo
Renaming SEIZMO's top level directory to "seizmo"
Warning: Unknown error occurred.
In install_seizmo (line 112)
Warning: SEIZMO's top directory must be named "seizmo" for
commands like "help seizmo" and "ver seizmo" to work!
In install_seizmo (line 113)
##################################################################
################## STARTING SEIZMO INSTALLATION ##################
##################################################################
Checking what application we are installing SEIZMO in...
Application: MATLAB
Version : 8.5
SEIZMO install path: C:\Program Files\MATLAB\MATLAB Production Server\seizmo-master
Install TauP (<1MB)? Y/N [Y]: y
Getting TauP-2.1.1.jar
Warning: Control Character '\P' is not valid. See 'doc sprintf' for control characters valid in the format
string.
In webinstall_taup (line 150)
In install_seizmo (line 222)
In install_seizmo (line 120)
Warning: Error using webinstall_taup (line 150)
In install_seizmo (line 222)
In install_seizmo (line 120)
Install IRISWS (<1MB)? Y/N [Y]: y
Getting IRIS-WS-2.0.6.jar
Warning: Control Character '\P' is not valid. See 'doc sprintf' for control characters valid in the format
string.
In webinstall_irisws (line 137)
In install_seizmo (line 226)
In install_seizmo (line 120)
Warning: Error using webinstall_irisws (line 137)
In install_seizmo (line 226)
In install_seizmo (line 120)
Install njTBX (30MB)? Y/N [Y]: y
Error using mkdir
Access is denied.
Error in webinstall_njtbx (line 60)
if(~exist(mypath,'dir')); mkdir(mypath); end

Error in install_seizmo (line 230)
ok=ok & webinstall_njtbx;
Error in install_seizmo (line 120)
ok=install_seizmo(false);

Please assist me for solving this issue

@waddah100 waddah100 mentioned this issue Oct 13, 2019
@Y5517lalalo
Copy link

Hey
While trying to install seizmo using matlab2018b I had the following:

Warning: Function isstring has the same name as a MATLAB builtin. We suggest you rename the function to avoid a
potential name conflict.

In path (line 109)
In addpath (line 86)
In install_seizmo (line 167)
In install_seizmo (line 120)
Warning: Function vecnorm has the same name as a MATLAB builtin. We suggest you rename the function to avoid a
potential name conflict.
In path (line 109)
In addpath (line 86)
In install_seizmo (line 167)
In install_seizmo (line 120)
Error using savepath>iSystemMovefile (line 299)
COMMAND must be a text scalar.

Error in savepath (line 210)
iSystemMovefile( tempfilename, outputfile );

Error in install_seizmo (line 213)
ok=ok & ~savepath;

Error in install_seizmo (line 120)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants