g2e / seizmo

passive(ly maintained) seismology toolbox for Matlab & GNU Octave
66 stars 55 forks source link

installation #16

Open socm12 opened 5 years ago

socm12 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

Y5517lalalo commented 2 years ago

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)