Extending Languages.

Slides:



Advertisements
Similar presentations
05/11/2001 CPT week Natalia Ratnikova, FNAL 1 Software Distribution in CMS Distribution unitFormContent Version of SCRAM managed project.
Advertisements

By: Lloyd Albin 9/28/2012. We are not talking about a Raspberry Pie.
1. Basics of R 2. Basic probability with R
© 2010 IBM Corporation IBM Experience Modeler - Theme Editor Installing Python Image Library Presenter’s Name - Presenter’s Title DD Month Year.
Julie McEnery1 Installing the ScienceTools The release manager automatically compiles each release of the Science Tools, it creates a set of wrapper scripts.
By Jeerarat Boonyanit. As you can see I have chosen Cpanel for my server management tool. cPanel is a Linux based web hosting control panel that provides.
Getting Started with Eclipse Sandeep Pasuparthy. What’s Eclipse? It is a free software / open source platform- independent software framework for delivering.
1 Introduction to Tool chains. 2 Tool chain for the Sitara Family (but it is true for other ARM based devices as well) A tool chain is a collection of.
SAD and Python with EPICS at IHEP,Beijing, Noboru Yamamoto KEK, JAPAN.
Ext Environment Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
SKA/KAT SPIN Presentation Software Engineering (!?) Robert Crida.
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
DTIAtlasBuilder Adrien Kaiser Neuro Image Research and Analysis Laboratories University of North Carolina at Chapel Hill A tool to create an atlas from.
Installing CompuCell3D from source Maciej Swat Biocomplexity Institute, Indiana University.
Michael Still Google Inc. October, Managing Unix servers the slack way Tools and techniques for managing large numbers of Unix machines Michael.
Introduction to GitHub Alex Bigazzi Dec. 4, 2013 ITS Lab GitHub Introduction1.
Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis
Copyright © 2004 Insight Technology, Inc. All Rights Reserved. 1 Performance Insight for Oracle 5.2 V.S Oracle Enterprise Management
Drush: The Drupal Shell Utility Trevor Mckeown Founder & Owner Sublime Technologies
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
How to create and install packages in R Presenter: Roman Jandarov
Managed by UT-Battelle for the Department of Energy Kay Kasemir, Xihui Chen ORNL/SNS April Control System Studio Training - Development.
Installing BioPerl – how to add a repository to the PPM Start  All Programs  Active Perl…  Perl Package manager (If you don’t see a screen like the.
LHCb-ATLAS GANGA Workshop, 21 April 2004, CERN 1 DIRAC Software distribution A.Tsaregorodtsev, CPPM, Marseille LHCb-ATLAS GANGA Workshop, 21 April 2004.
SWAN Installation Charlie Xia 10/2/15 T UTORIAL AND T IPS FOR L INUX AND OSX #Note: copy/paste code from this slide maybe broken depending on PowerPoint.
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
Package & Deploy. OBJECTIVES Package Deploy Way to package.
Files Tutor: You will need ….
1 Installing Cantera 1.7, Python 2.5, and Python SDToolbox for Windows J. Ziegler, S. Browne, and J. E. Shepherd Caltech Revised August, 2007.
Plug-in Architectures Presented by Truc Nguyen. What’s a plug-in? “a type of program that tightly integrates with a larger application to add a special.
Loader Tutorial Set Up. Requirements Java 7 Eclipse IvyIDE plugin Git Optional: Ant Maven.
Web Scraping with Python and Selenium. What is Web Scraping?  Software technique for extracting info from websites Get information programmatically that.
Python Eggs For NOObs and Others Chris Calloway. What Are Python Eggs? Managed distributions of python packages: a)Discovery within repositories, b)Dependency.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
Use Cases, Issues, Proposed Solutions: Software and Environment Non Privileged User Package Management Francois-Denis Gonthier Kryptiva inc.
Installation and environment variables. Simple Installation 1 The latest sources can always be obtained from the CDAT website:
Let’s Learn 12. Packaging a Game Saengthong School, June – August 2016
Outline Installing Gem5 SPEC2006 for Gem5 Configuring Gem5.
Development Environment
Introduction to InVEST ArcGIS Tool
MET4750 Techniques for Earth System Modeling
Python’s Modules Noah Black.
Build Automation with Gradle
Installing Software Part 3
Install external command line softwares
Scripting for QA Engineers
Lecture 20 Optimizing Python.
USING PYTHON to Automate data management tasks
State of Testing Jason Kenny – ATS committer.
Contact us to fix AVG Error Code 0xe001f921
17. Packaging a Game.
The Linux Operating System
Installing and running the local check projects in Eclipse
Ubuntu Working in Terminal
Perl A simple test.
Using Visual Studio and VS Code for Embedded C/C++ Development
Introduction to Algorithm Design
This is where R scripts will load
EMSE 6574 – Programming for Analytics: Python 101 – Python Enviornments Joel Klein.
An introduction to the Linux environment v
LING/C SC 581: Advanced Computational Linguistics
Windows Installation Tutorial
Lab 4: Introduction to Scripting
This is where R scripts will load
Python Modules.
Carthage ios 8 onwards Dependency manager that streamlines the process of integrating the libraries into the project.
Computational Environment Management
Installations for Course
Installations for Course
Presentation transcript:

Extending Languages

Extending Languages Most commonly used languages will have extensions which can be installed to provide new functionality The extensions may not be written in the same language C or C++ extensions to scripted languages are very common We will look at how to extend different languages R Perl Python

R packages

Installing R packages Standard locations are either in sitewide R package folder, eg /usr/lib/R or in ~/R/ Installation through a package repository CRAN BioConductor Manual installation from any source Project site Github etc.

Installing R packages through CRAN Installer and dependency resolution built into the language Can install both binary and source packages Source packages my have OS dependencies which will need to be fixed From within R install.packages(“packagename”) Use sudo to launch R if you want to install for all users

Installing R packages from BioConductor Independent, bioinformatics oriented package repository Has it’s own installer which you need to load Simple process: source("https://bioconductor.org/biocLite.R") biocLite() Additional packages can be installed with biocLite(“packagename”)

Installing R packages from other sources Download the tar.gz file for the package Run: R CMD INSTALL package.tar.gz Direct installation from github Install the devtools package library(devtools) install_github(“user/repository”)

Perl Modules

Installing Perl modules Install from your OS repository Structured naming format, Example::Module would be perl-example-module Won't be pulled from here any other way May end up with duplicates Automated install using CPAN.pm Use a module to install modules. Ships alongside Perl Manual installation Follows a standard recipe

Installing Perl modules - Using cpan Run cpan install Example::Module Automated download, configuration and installation Does the same steps as a manual install Can resolve dependencies Configuration on first use To install modules, you need to configure a local Perl library directory or escalate your privileges. CPAN can help you by bootstrapping the local::lib module or by configuring itself to use 'sudo' (if available). You may also resolve this problem manually if you need to customize your setup. What approach do you want? (Choose 'local::lib', 'sudo' or 'manual') [local::lib]

Manual Perl Module installation (after download and un-tarring) MakeMaker Build perl Makefile.PL make make test make install (with sudo?) perl Build.PL ./Build ./Build test ./Build install (with sudo?)

Installing in non-standard locations perl -V (look at @INC) @INC: /usr/local/share/perl/5.26.1 /usr/share/perl/5.26 /usr/local/lib/site_perl Add folders to PERL5LIB environment variable perl Makefile.PL INSTALL_BASE=/my/dir perl Build.PL --install_base=/my/dir

Python packages

Installing python packages Several options OS system packages Automated install with pip Manual install Install from source code repository Installation is into a folder in $PYTHONPATH

Installing python packages with pip apt/yum install python-pip pip install numpy pip install --user numpy pip install --upgrade numpy Check pip vs pip3

Manual python package installation (after download and un-tarring) python setup.py install python3 setup.py install --prefix=/my/folder Will fail initially as final destination isn't in PYTHONPATH Will tell you what folder to add Rerun install after fixing PYTHONPATH