- 浏览: 2566444 次
- 性别:
- 来自: 成都
-
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
buildr(1)Introduce and Install
1. Install on Linux
>wget http://buildr.apache.org/scripts/install-linux.sh
>sudo sh install-linux.sh
It told me that I need these things as follow:
No package ruby available.
No package rubygems available.
No package ruby-devel available.
No package gcc available.
Hard to believe that. So many things to do on redhat.
message:
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package httpd-devel available.
Nothing to do
solution:
>vi /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=CentOS-$releasever – Base
baseurl=http://mirror.centos.org/centos/4/os/x86_64/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever – Updates
baseurl=http://mirror.centos.org/centos/4/os/x86_64/
gpgcheck=1
>sudo yum clean all
>sudo yum update --skip-broken
Install gcc, git on my system.
>sudo yum install glibc-kernheaders --skip-broken
Some cycle dependency here.
try to prepare rvm and install ruby1.9.2, and install gem then.
2. Install on Ubuntu
Install ruby related things
>sudo apt-get install ruby-full ruby1.8-dev libopenssl-ruby build-essential
make sure I installed gem on my system
>gem --version
1.8.6
make sure JAVA is there on my system
>echo $JAVA_HOME
/usr/lib/jvm/java-6-sun
Install buildr
>sudo env JAVA_HOME=$JAVA_HOME gem install buildr
Other commands to upgrade a new version or install a specific version:
>sudo env JAVA_HOME=$JAVA_HOME gem update buildr
>sudo env JAVA_HOME=$JAVA_HOME gem install buildr -v 1.4.3
>sudo buildr test
error message:
RuntimeError : Are we forgetting something? JAVA_HOME not set.
solutions:
>sudo env JAVA_HOME=$JAVA_HOME buildr test
3. Install on windows
Install ruby tools on windows first http://rubyinstaller.org/downloads/archives, download the file with version 1.8.6
http://rubyforge.org/frs/download.php/71066/rubyinstaller-1.8.6-p398.exe
set JAVA_HOME
execute the install command
>gem install buildr --platform nswin32
error message:
'make' is not recognized as an internal or external command, operable program or batch file.
solution:
Install the DEVKIT, update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
Add this directory to path: D:\tool\devkit\bin
Fix this problem, but other problem accured. My windows system is 64bit win7.
error message:
jniwrap.h:24: error: 'long long long' is too long for GCC
jniwrap.h:24: error: 'long long long' is too long for GCC
jniwrap.h:24: warning: useless type name in empty declaration
Solutions:
try install MinGW via this URL http://sourceforge.net/projects/mingw/files/
>gem install buildr --platform x86-nswin32
The problem is still there, maybe that is something related to my 64-bit system. I fail to install this on windows.
I tried to update my ruby to 1.9.2 and update my gem.
Using this command to check the envrionment
>gem evn
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.13
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i386-mingw32]
- INSTALLATION DIRECTORY: D:/tool/Ruby192/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: D:/tool/Ruby192/bin/ruby.exe
- EXECUTABLE DIRECTORY: D:/tool/Ruby192/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
>gem install rjb --platform x86-mswin32
>gem install buildr --platform x86-nswin32
edit the file in this directory D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.3/ext/jniwrap.h, change the line
from
typedef long long __int64;
to
typedef long long long64;
>cd D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.3/ext
>make
>make all
>make install
>cd ..
>gem spec ../../cache/rjb-1.3.3.gem --ruby > ../../specifications/rjb-1.3.3.gemspec
try again
>gem install buildr --platform x86-nswin32
>buildr --version
successful here. but error message in next steps
>buildr compile
error message:
Buildr aborted!
RuntimeError : can't create Java VM
solutions:
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>env JAVA_HOME=D:\tool\jdk1.6 gem install buildr -v 1.4.6 --platform x86-nswin32-60
>cd d:\tool\Ruby192\lib\ruby\gems\1.9.1\gems\rjb-1.3.8-x86-mswin32-60\test
>ruby test.rb
new error message:
The program can't start because msvcrt-ruby18.dll is missing from your computer.
Try reinstalling the program to fix this problem.
>gem uninstall rjb -v 1.3.8
>gem uninstall rjb -v 1.3.4
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>gem uninstall rjb -v 1.3.3
rollback my ruby to 1.8.6, and gem 1.3.7
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>env JAVA_HOME=D:\tool\jdk1.6 gem install buildr -v 1.4.6 --platform x86-nswin32-60
new error message:
The procedure entry point rb_str_set_len could not be located in the dynamic link library msvcrt-ruby18.dll
solutions:
>gem uninstall rjb -v 1.3.3
>gem list
>gem install rjb -v 1.3.3 --platform mswin32
In the mean time, change the file jniwrap.h
>gem uninstall buildr -v 1.4.6
>gem install buildr -v 1.4.6 --platform mswin32
>ruby -v -e "p ENV['JAVA_HOME']"
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]
"D:\\tool\\jdk1.6"
>ruby -v -e "p ENV['LD_LIBRARY_PATH']"
C:\Ruby186\lib\ruby\gems\1.8\gems\rjb-1.3.4\ext/rjb.c:1135: undefined reference to `rb_str_set_len'
rollback back to 1.9.2
>gem install rjb -v 1.3.4 --platform ruby
>cd D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.4/ext
>make
>make all
>make install
>cd ..
>gem spec ../../cache/rjb-1.3.4.gem --ruby > ../../specifications/rjb-1.3.4.gemspec
Fail at last, I give up here.
4. Check the Installation
>sudo buildr --version
Buildr 1.4.6
5. Running Buildr
put a buildfile on that directory. Something like ant,
#clean and rebuild
>sudo buildr clean build
>sudo buildr install
The related things are ruby, rake, antwrap, yaml.
references:
http://buildr.apache.org/
http://rubyinstaller.org/
http://sillycat.iteye.com/blog/1133322
http://sillycat.iteye.com/blog/1156180
http://sillycat.iteye.com/blog/1154490
http://ryang.iteye.com/blog/1147759
http://www.cesclub.com/bw/jishuzhongxin/Webjishu/2011/0813/3504.html
http://devjete.wordpress.com/2011/01/31/installing-rjb-1-3-4-on-windows-7-32bit-wo-vc/
http://devjete.wordpress.com/2011/01/31/ruby-1-9-2-rails-3-sqlite3-rjb-1-3-4-on-windows-7-32bit/
http://devjete.wordpress.com/author/somehi/
https://issues.apache.org/jira/browse/BUILDR-549
http://www.shaunambrose.com/2010/11/11/how-to-fix-the-msvcrt-ruby18-dll-is-missing-from-your-computer-error-message-in-ruby-on-rails/
http://stackoverflow.com/questions/3250406/msvcrt-ruby18-dll-was-not-found-with-ruby
http://rjb.rubyforge.org/
1. Install on Linux
>wget http://buildr.apache.org/scripts/install-linux.sh
>sudo sh install-linux.sh
It told me that I need these things as follow:
No package ruby available.
No package rubygems available.
No package ruby-devel available.
No package gcc available.
Hard to believe that. So many things to do on redhat.
message:
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package httpd-devel available.
Nothing to do
solution:
>vi /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=CentOS-$releasever – Base
baseurl=http://mirror.centos.org/centos/4/os/x86_64/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever – Updates
baseurl=http://mirror.centos.org/centos/4/os/x86_64/
gpgcheck=1
>sudo yum clean all
>sudo yum update --skip-broken
Install gcc, git on my system.
>sudo yum install glibc-kernheaders --skip-broken
Some cycle dependency here.
try to prepare rvm and install ruby1.9.2, and install gem then.
2. Install on Ubuntu
Install ruby related things
>sudo apt-get install ruby-full ruby1.8-dev libopenssl-ruby build-essential
make sure I installed gem on my system
>gem --version
1.8.6
make sure JAVA is there on my system
>echo $JAVA_HOME
/usr/lib/jvm/java-6-sun
Install buildr
>sudo env JAVA_HOME=$JAVA_HOME gem install buildr
Other commands to upgrade a new version or install a specific version:
>sudo env JAVA_HOME=$JAVA_HOME gem update buildr
>sudo env JAVA_HOME=$JAVA_HOME gem install buildr -v 1.4.3
>sudo buildr test
error message:
RuntimeError : Are we forgetting something? JAVA_HOME not set.
solutions:
>sudo env JAVA_HOME=$JAVA_HOME buildr test
3. Install on windows
Install ruby tools on windows first http://rubyinstaller.org/downloads/archives, download the file with version 1.8.6
http://rubyforge.org/frs/download.php/71066/rubyinstaller-1.8.6-p398.exe
set JAVA_HOME
execute the install command
>gem install buildr --platform nswin32
error message:
'make' is not recognized as an internal or external command, operable program or batch file.
solution:
Install the DEVKIT, update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
Add this directory to path: D:\tool\devkit\bin
Fix this problem, but other problem accured. My windows system is 64bit win7.
error message:
jniwrap.h:24: error: 'long long long' is too long for GCC
jniwrap.h:24: error: 'long long long' is too long for GCC
jniwrap.h:24: warning: useless type name in empty declaration
Solutions:
try install MinGW via this URL http://sourceforge.net/projects/mingw/files/
>gem install buildr --platform x86-nswin32
The problem is still there, maybe that is something related to my 64-bit system. I fail to install this on windows.
I tried to update my ruby to 1.9.2 and update my gem.
Using this command to check the envrionment
>gem evn
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.13
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i386-mingw32]
- INSTALLATION DIRECTORY: D:/tool/Ruby192/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: D:/tool/Ruby192/bin/ruby.exe
- EXECUTABLE DIRECTORY: D:/tool/Ruby192/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
>gem install rjb --platform x86-mswin32
>gem install buildr --platform x86-nswin32
edit the file in this directory D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.3/ext/jniwrap.h, change the line
from
typedef long long __int64;
to
typedef long long long64;
>cd D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.3/ext
>make
>make all
>make install
>cd ..
>gem spec ../../cache/rjb-1.3.3.gem --ruby > ../../specifications/rjb-1.3.3.gemspec
try again
>gem install buildr --platform x86-nswin32
>buildr --version
successful here. but error message in next steps
>buildr compile
error message:
Buildr aborted!
RuntimeError : can't create Java VM
solutions:
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>env JAVA_HOME=D:\tool\jdk1.6 gem install buildr -v 1.4.6 --platform x86-nswin32-60
>cd d:\tool\Ruby192\lib\ruby\gems\1.9.1\gems\rjb-1.3.8-x86-mswin32-60\test
>ruby test.rb
new error message:
The program can't start because msvcrt-ruby18.dll is missing from your computer.
Try reinstalling the program to fix this problem.
>gem uninstall rjb -v 1.3.8
>gem uninstall rjb -v 1.3.4
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>gem uninstall rjb -v 1.3.3
rollback my ruby to 1.8.6, and gem 1.3.7
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>env JAVA_HOME=D:\tool\jdk1.6 gem install buildr -v 1.4.6 --platform x86-nswin32-60
new error message:
The procedure entry point rb_str_set_len could not be located in the dynamic link library msvcrt-ruby18.dll
solutions:
>gem uninstall rjb -v 1.3.3
>gem list
>gem install rjb -v 1.3.3 --platform mswin32
In the mean time, change the file jniwrap.h
>gem uninstall buildr -v 1.4.6
>gem install buildr -v 1.4.6 --platform mswin32
>ruby -v -e "p ENV['JAVA_HOME']"
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]
"D:\\tool\\jdk1.6"
>ruby -v -e "p ENV['LD_LIBRARY_PATH']"
C:\Ruby186\lib\ruby\gems\1.8\gems\rjb-1.3.4\ext/rjb.c:1135: undefined reference to `rb_str_set_len'
rollback back to 1.9.2
>gem install rjb -v 1.3.4 --platform ruby
>cd D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.4/ext
>make
>make all
>make install
>cd ..
>gem spec ../../cache/rjb-1.3.4.gem --ruby > ../../specifications/rjb-1.3.4.gemspec
Fail at last, I give up here.
4. Check the Installation
>sudo buildr --version
Buildr 1.4.6
5. Running Buildr
put a buildfile on that directory. Something like ant,
#clean and rebuild
>sudo buildr clean build
>sudo buildr install
The related things are ruby, rake, antwrap, yaml.
references:
http://buildr.apache.org/
http://rubyinstaller.org/
http://sillycat.iteye.com/blog/1133322
http://sillycat.iteye.com/blog/1156180
http://sillycat.iteye.com/blog/1154490
http://ryang.iteye.com/blog/1147759
http://www.cesclub.com/bw/jishuzhongxin/Webjishu/2011/0813/3504.html
http://devjete.wordpress.com/2011/01/31/installing-rjb-1-3-4-on-windows-7-32bit-wo-vc/
http://devjete.wordpress.com/2011/01/31/ruby-1-9-2-rails-3-sqlite3-rjb-1-3-4-on-windows-7-32bit/
http://devjete.wordpress.com/author/somehi/
https://issues.apache.org/jira/browse/BUILDR-549
http://www.shaunambrose.com/2010/11/11/how-to-fix-the-msvcrt-ruby18-dll-is-missing-from-your-computer-error-message-in-ruby-on-rails/
http://stackoverflow.com/questions/3250406/msvcrt-ruby18-dll-was-not-found-with-ruby
http://rjb.rubyforge.org/
发表评论
-
RESTful JSON Mock Server
2015-03-19 11:58 806RESTful JSON Mock Server C ... -
Performance Tool(7)Improve Lua and Wrk
2015-01-17 06:37 1047Performance Tool(7)Improve Lua ... -
Performance Tool(6)Gatling Upgrade to 2.1.2 Version Or wrk
2015-01-10 01:15 986Performance Tool(6)Gatling Upg ... -
Performance Tool(5)Upgrade to 2.0.x
2014-08-27 03:34 1139Performance Tool(5)Upgrade to 2 ... -
Performance Tool(4)CSV File Data Feeder
2014-08-25 10:50 1042Performance Tool(4)CSV File Dat ... -
wrk with LuaJIT
2014-08-19 06:30 1350wrk with LuaJITHere is an exa ... -
Performance Tool(3)Gatling Upgrade and Cluster
2014-07-25 02:32 1348Performance Tool(3)Gatling Upgr ... -
WRK a HTTP Benchmarking Tool
2014-03-07 04:42 1156WRK a HTTP Benchmarking Tool1 ... -
Performance Tool(1)Gatling
2013-03-15 05:28 1308Performance Tool(1)Gatling 1. ... -
Jenkins Configuration(4)Improve Shell Script Debug/Info Message
2013-01-07 06:32 1348Jenkins Configuration(4)Improve ... -
Jenkins Configuration(3)Shell Script
2012-12-28 01:17 2699Jenkins Configuration(3)Shell S ... -
Eclipse Plugin(2)SOAP UI
2012-06-08 10:48 1361Eclipse Plugin(2)SOAP UI Plugi ... -
Spring3 and REST Integeration(VII)Controller JUnit Test and Mock/Spring Test MVC
2012-04-06 15:57 1922Spring3 and REST Integeration(V ... -
Spring3 and REST Integration(VI)Controller JUnit Test and Mock/Spring HandlerAda
2012-04-06 15:51 1831Spring3 and REST Integration(VI ... -
Spring3 and REST Integration(V)Controller JUnit Test and Mock/HandlerAdapter
2012-04-06 15:41 2849Spring3 and REST Integration(V) ... -
Spring3 and REST Integration(IV)Controller JUnit Test and Mock/Servlet
2012-04-06 15:13 2009Spring3 and REST Integration(IV ... -
Jbehave(2)Some Improvement and POM changes
2012-03-28 23:11 1443Jbehave(2)Some Improvement and ... -
Jbehave(1) First Web Page Sample
2011-10-26 15:00 2216Jbehave(1) First Web Page Sampl ... -
WarcraftIII Problem on English Win7
2011-07-25 10:18 1957WarcraftIII Problem on English ... -
Web Performance Test Tool
2011-05-10 15:37 1468Web Performance Test Tool 1. F ...
相关推荐
It will also introduce the reader to the purpose of the tool and teachesthe user what methods are needed to install Community Tools. It is important totake some time getting an introduction to some ...
Changes in 2.4.6 (February 22, 2011): Brief summary : - Support more host OS to run on: - Include win64 native binary in the ... [2914433] makesym.perl misses symbols by John R. Jackson [2908481] USB ...
pimpinella_3cd_01_0716
FIB English learning
X86-jq安装包
AB PLC例程代码项目案例 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我!
大圣挪车小程序1.3.5 前端
Manus.im 产品及开发团队研究报告.pdf
AB PLC例程代码项目案例 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我!
sun_3ck_01a_0918
下载 1. 单击“立即下载”,以下载该文件。 2. 出现“文件下载”窗口后,单击“保存”,以将文件保存到硬盘。 安装 1. 浏览至文件下载目标位置并双击新下载的文件。 2. 仔细阅读对话窗口中显示的发布信息。 3. 下载并安装对话窗口中标识的任何必备项,然后再继续。 4. 单击“Install”(安装)按钮。 5. 按照其余提示执行更新。 安装 1. 将解压的文件复制到可访问Windows的介质。 2. 将系统重新引导至Windows操作系统。 3. 打开“服务器管理器”->“设备管理器”->“存储控制器”,然后单击“PERC控制器”。 5. 单击“更新驱动程序软件”,并按照提示更新驱动程序。 4. 重新引导系统以使更改生效。
支持所有操作系统一键安装。
matlab程序代码项目案例 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我!
AB PLC例程代码项目案例 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我!
swanson_01_1106
AB PLC例程代码项目案例 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我!
AB PLC例程代码项目案例 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我!
sun_3ck_01_0919
各城市方言距离数据-中山大学岭南学院产业与区域经济研究中心 方言距离是指两种或多种方言之间的相似程度或差异程度。参考中山大学岭南学院产业与区域经济研究中心的刘毓芸等(2015)文献。他们基于方言树图,并参考《汉语方言大词典》和《中国语言地图集》对方言的划分,将汉语方言从宽泛到具体分为以下几个层级:汉语→方言大区→方言区→方言片。为了量化县与县之间的方言差异,他们采用了一种赋值方法: 若它们分属不同方言大区,则距离为3。: 若两个县同属一个方言片,则它们之间的方言距离为0; 若两个县属于同一方言区但不同方言片,则距离为1; 若它们属于同一方言大区但不同方言区,则距离为2; 方言距离是一个反映方言之间相似程度或差异程度的重要指标,它在语音识别、方言研究等领域具有广泛的应用价值。 参考文献:[1]刘毓芸, 徐现祥, 肖泽凯. 2015. 劳动力跨方言流动的倒U型模式[J]. 经济研究, 50(10): 134-146+162. 指标 语系、语族、方言大区、方言区/语支、方言片/语种、Supergroup、Dialect、group、Sub-dialect、groupPref_1、Pref_2、DiaDist、PrefCode_1、PrefCode_2等等。
基于PCA算法的人脸识别MATLAB源码