def install_vicvb(env):
	try:
		_initialize_env("vicvb")
		
		_apt_get_install("libperlio-gzip-perl")
		_apt_get_install("liblocal-lib-perl")
		
		tbl2asn_download_dir = "/usr/local/tbl2asn_download"
		tbl2asn_dir = "/usr/local/bin"
		if _path_exists(os.path.join(tbl2asn_dir,"tbl2asn")):
			sudo("mv %s/tbl2asn %s/tbl2asn_pre_VCR" % (tbl2asn_dir,tbl2asn_dir))
		_add_package("ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/converters/by_program/tbl2asn","linux64.tbl2asn.gz",tbl2asn_download_dir,"gzip")
		sudo("chmod 777 %s/linux64.tbl2asn" % tbl2asn_download_dir)
		sudo("mv %s/linux64.tbl2asn %s/tbl2asn" % (tbl2asn_download_dir,tbl2asn_dir))
		_remove_dir(tbl2asn_download_dir)
		
		with cd("~"):
			sudo("git clone git://github.com/JCVI-Cloud/VICVB.git")
		with cd("~/VICVB"):
			sudo("lib/VICVB/data/install/install_to_dir_full.sh %s /mnt/galaxyTools/galaxy-central /" % (env.VICVB_LOCAL_DIR))
	finally:
		disconnect_all()
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/custom/vcr.py/install_vicvb/original