pub get to install non-dart dependancies similar to NPM, pip, etc? - dart

When looking at the pub spec format, i was curious if I can install other packages with pub get. My goal is to either install Ruby or some other tools. Even if i have command line access I could run python scripts or similar to get the code.
How does the dart package manager work in this sense? Would it be simpler to just wrap dart with npm or similar and then do all the installs in NPM and follow it up with pub get?
I am curious what the rest of the community is doing for non-dart dependency injection.
Part of me was thinking the executables flag, but i was not not sure.

There's no support for this.
I have a command line tool called scripts that you can use to run additional commands, but it's not an official Dart tool or anything.
https://pub.dartlang.org/packages/scripts

Related

Why can't I install this aqueduct

Why can't I install this aqueduct?
Although I have installed dart before as shown in the picture:
It's important to ensure that the dart SDK is in the PATH. You can easily test it by trying to use pub or dart.
One way to ensure it's in the PATH is by creating a .bashrc file in your user's folder.
Then add the following:
export PATH="$PATH:/path/to/dart/installation/bin/folder"
First of all check if dart is installed using dart --version if it gives a command not found error that means it is not installed (hence why you cannot install aqueduct since it requires pub which is shipped with the dart sdk).
To install dart on macOS first install brew and the follow the instruction here https://dart.dev/get-dart (don't run brew switch dart 2.1.0 as shown in the screenshot since it makes no sense because current the latest stable is 2.9.1 and 2.1.0 is pretty old).
If you don't want to install brew you can download the sdk here (for your system) extract it, and update your path variable as #gabriel-octávio says.

How to install Lua Love using the luarocks manger?

I am a complete newb to lua, but so far I like it.
I want to install love because it provides a nice framework and want to explore its features. I can already run lua scripts (luarocks comes with lua5.1.) and I have the zerobrain IDE. I installed socket.rock by getting the .rock file and running:
luarocks install luasocket-2.0.2-3.win32-x86.rock
But I can't find a similar file for love. I found this website: luarocks-love, which tells me:
luarocks install --server=http://luarocks.org/m/love <name>
So I can run this, but I don't know what <name> means... I tried it without <name> and I get an error. Can someone explain what I am missing here?
Thanks!
You can't install Love via luarocks. Love isn't a library.
The installers for Windows are available here.
What you have there is just used for installing libraries using luarocks that depend upon Love. It is not the framework itself.

When i import parse in ipython , computer say 'parse' it not defined

I think i don't have parse library. So, Where can i get it?
As beginner, I need your help.
I wrote from lxml.html import parse , Computer say name 'parse' is not defined
You actually probably need the lxml package, which was in the comment by cel. It seems to me like your question is concerning how to actually install the package. Everything at PyPi (the Python package index) can be installed in several ways. For me, the easiest is using pip, which is a tool for installing Python packages. Here are some links for how to get pip on your machine for different operating systems: Windows, Mac OSX, or in general.
Once you have pip installed, you go to your command line and type
pip install ['package_name']
where, in your case, package_name would be lxml. Once you do that, your import should work just fine. The full pip documentation is here.
If you prefer to manually install the package, you can download the source and install it according to the Python docs for Python 2.x or 3.x.

Building DEB package for fsharp compiler

I would like to install the fsharp compiler from Github on my Debian system, and the usual way would be to create a deb package first and then install it (so it is possible to uninstall it later, etc.). What is the easiest way to achieve this? All the examples of how to use dh_make assume you have a source tar.gz appropriately named, whereas I don't. Also I need to use some prefix for the autogen script:
./autogen.sh --prefix=/usr
I am not sure it this makes the task any more difficult.
This should actually be fairly simple to achieve with a binary package - which will also be cross-platform because the F# compiler itself is written in F#. The compiler itself is fairly standalone and depends only on a few BCL libraries. There are versions that run on Mono.
More important than installing the compiler is the integration with your platform's build system(s). Microsoft ships a Microsoft.FSharp.targets file for MSBuild, I don't know whether that will work with Mono's xBuild.
I have put together a blog post that explains where to find the various bits that make up the F# compiler and how to package them to compile on a platform that has only .NET and MSBuild (AppHarbor in my case), which you may find helpful.

How do you open the command line tool in the Dart Editor?

The one that you use to write things as "pub install" and such.
AFAIK Dart Editor does not provide an integrated shell. You'll have to open whatever shell is available on your system, or install one of your choice.
If you're just looking for pub integration, you can find pub install and pub update from the Tools menu.

Resources