Erlang/OTP Forums

Author Message

<  Erlang  ~  Where Erlang looks for the file to compile?

tivrfoa
Posted: Wed Nov 04, 2009 4:03 pm Reply with quote
Joined: 04 Nov 2009 Posts: 6
Hello!

Where Erlang looks for the file to compile?

I'm following this tutorial, but it doesn't mention where I must save the file.
http://www.erlang.org/quick_start.html

Thanks in advance!
View user's profile Send private message
flodis
Posted: Thu Nov 05, 2009 4:17 pm Reply with quote
User Joined: 09 Jul 2008 Posts: 27
Erlang looks for .erl files in the same directory as you run "erl" from.
View user's profile Send private message
tivrfoa
Posted: Thu Nov 05, 2009 4:43 pm Reply with quote
Joined: 04 Nov 2009 Posts: 6
flodis wrote:
Erlang looks for .erl files in the same directory as you run "erl" from.

crazy thing.
I installed in Windows. It doesn't find the file if I start Erlang from the shortcut, but it does find the file if I start from the bin.

Do you know how to specify the path? I tried: c(..\src\test)., but it didn't work. It gives an error: syntax error before: '.'
View user's profile Send private message
Allan
Posted: Sat Nov 07, 2009 5:42 pm Reply with quote
User Joined: 29 Jun 2009 Posts: 30
tivrfoa wrote:
It doesn't find the file if I start Erlang from the shortcut, but it does find the file if I start from the bin.

Try to specify a working directory in the shortcut.
Also there is the -pa parameter that specifies a folder to be searched when a module is searched for.


tivrfoa wrote:
Do you know how to specify the path? I tried: c(..\src\test)., but it didn't work.

Try to give the module name as atom like in "c('..\\src\\test').".
View user's profile Send private message Send e-mail ICQ Number
EAE
Posted: Sat Nov 07, 2009 8:36 pm Reply with quote
Joined: 07 Nov 2009 Posts: 2
I encountered the same problem earlier today. I had to use the \usr directory.

Here is how I found out where I needed to save those files on my XP system: Start/Programs/Erlang/Properties, then find the 'Start In:' directory.
View user's profile Send private message
tivrfoa
Posted: Sat Nov 07, 2009 9:16 pm Reply with quote
Joined: 04 Nov 2009 Posts: 6
Allan wrote:
Try to specify a working directory in the shortcut.
Also there is the -pa parameter that specifies a folder to be searched when a module is searched for.

Where do I specify this parameter, in a file or in the command line?
Allan wrote:

tivrfoa wrote:
Do you know how to specify the path? I tried: c(..\src\test)., but it didn't work.

Try to give the module name as atom like in "c('..\\src\\test').".

I tried c('../src/test'). and worked for me. Thanks a lot! Very Happy
EAE wrote:
Here is how I found out where I needed to save those files on my XP system: Start/Programs/Erlang/Properties, then find the 'Start In:' directory.
I didn't find a file/folder called Properties. Sad
View user's profile Send private message
EAE
Posted: Sat Nov 07, 2009 10:58 pm Reply with quote
Joined: 07 Nov 2009 Posts: 2
"Properties" is not a folder, in XP right-click on an object and you can see it's properties. So just use the start menu like you were going to launch Erlang, but instead of that final 'left click' to launch the application, just right-click and then select Properties from the popup menu.

http://collectivestock.com/misc/erlang/erlangstartdirectoryforxp.png

http://collectivestock.com/misc/erlang/erlangproperties.png
View user's profile Send private message
tivrfoa
Posted: Sat Nov 07, 2009 11:39 pm Reply with quote
Joined: 04 Nov 2009 Posts: 6
EAE wrote:
"Properties" is not a folder, in XP right-click on an object and you can see it's properties. So just use the start menu like you were going to launch Erlang, but instead of that final 'left click' to launch the application, just right-click and then select Properties from the popup menu.

http://collectivestock.com/misc/erlang/erlangstartdirectoryforxp.png

http://collectivestock.com/misc/erlang/erlangproperties.png

Thanks a lot! I really appreciate. =)
View user's profile Send private message
Allan
Posted: Sun Nov 08, 2009 7:58 am Reply with quote
User Joined: 29 Jun 2009 Posts: 30
tivrfoa wrote:
Where do I specify this parameter, in a file or in the command line?

In the command line.

People that found the previous tip usefull, also liked to read the following help pages:
The Erlang Emulator
Configuration file

Really essential information is always somewhat hidden in the Erlang documentation. That is to slow the innocent mind a little down and protect it from too much burden... ;)
View user's profile Send private message Send e-mail ICQ Number
tivrfoa
Posted: Sun Nov 08, 2009 1:27 pm Reply with quote
Joined: 04 Nov 2009 Posts: 6
Allan wrote:
tivrfoa wrote:
Where do I specify this parameter, in a file or in the command line?

In the command line.

People that found the previous tip usefull, also liked to read the following help pages:
The Erlang Emulator
Configuration file

Really essential information is always somewhat hidden in the Erlang documentation. That is to slow the innocent mind a little down and protect it from too much burden... Wink

Thank you Allan! =)
View user's profile Send private message
rvirding
Posted: Wed Nov 11, 2009 8:41 pm Reply with quote
User Joined: 30 Aug 2006 Posts: 452 Location: Stockholm, Sweden
EAE wrote:
I encountered the same problem earlier today. I had to use the \usr directory.

Here is how I found out where I needed to save those files on my XP system: Start/Programs/Erlang/Properties, then find the 'Start In:' directory.


I do it another way which is more basic and simpler: in each directory in which I am working I create an erlang.bat file which starts erlang. Then by clicking on it I start an erlang with default path to that directory. This saves modifying the Properties field, and forgetting to do it.
View user's profile Send private message Visit poster's website MSN Messenger
tivrfoa
Posted: Fri Nov 13, 2009 2:45 am Reply with quote
Joined: 04 Nov 2009 Posts: 6
rvirding wrote:
in each directory in which I am working I create an erlang.bat file which starts erlang. Then by clicking on it I start an erlang with default path to that directory. This saves modifying the Properties field, and forgetting to do it.

Very good idea! Thanks for sharing!
View user's profile Send private message
wuji
Posted: Wed Sep 12, 2012 6:28 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
affiliate KABC reported.Thomas, 26, and Young, 29, likely will be charged with with [h2]replica designer *beep*[/h2] with murder on Friday, Villanueva said.Their arrests at 9 p.m. PT Wednesday
related to the arrest at 8 p.m. Wednesday of Richard Anderson, 33, 33, [h4]cheap replica *beep*[/h4] 33, in connection with a string of shotgun robberies, Villanueva added, though
would not reveal the nature of the relationship between the two cases.Ben-Meir's cases.Ben-Meir's jordan 11 cases.Ben-Meir's wallet was missing, raising the possibility he was killed during a
KABC reported. Police would not confirm the missing wallet to ABCNews.com.Ben-Meir, who who jordan concord who coordinated music for MTV shows including Ashton Kutcher's "Punk'd," was found
down, shot at least once in the back of the head, on on cheap jordan shoes on the sidewalk outside his home early Sunday morning by a neighbor.He
View user's profile Send private message
liuhuan123
Posted: Wed Sep 12, 2012 10:02 am Reply with quote
Joined: 12 Sep 2012 Posts: 1 Location: ada
in any adidas jeremy scott way. Shades for the Invisible Woman Nike Air adidas jeremy scott shoes Force 1s, Espo x Air Force IIs and endless bootlegs, these cellophane adidas js wings american flag Women jeremy scott mens JS Wings may actual able-bodied be one of the best attribute of this shoe active affair yet. Airy and cloudlike with white accents, you accept a nice little time to banal up on white socks afore these hit baddest adidas Originals retailers.

Blue/off white/navy Ash Cool Suede Color Block Blue Strapped Block Sneakers Blue Block sneakers by platform sandals flat Featuring a applique up cease with dark eyelets adverse laces and a suede Velcro band a stitched console architecture with adverse suede uppers and perforated account a bedlam abate belt almond shaped toe and a top buried block heel and adverse.

he Cartier Adulation Bracelet was aboriginal brought to bazaar in the backward 1970s and has been a hot affairs artefact anytime since. Initially, alone the affluent could allow this admirable adornment but over the years Cartier accept alien a advanced ambit of bracelets and now the prices are affordable for everyone. Starting as low as $30 they again advance up the amount alternation to abounding thousand of dollars.Most love cartier bracelet adulation bracelets are fabricated from 18-carat gold in yellow, rose or white. Despite there getting a abounding appearance range.

Christian louboutin affiliated commonwealth High heel shoes answerable for all through The far east, and that's gluttonous to Christian Louboutin Sends absolutely adjustment several weeks, it is now time to aftermath apology in accession to accomplish an accomplishment to advice accomplish adjustments for your far bigger affordabl christian louboutin wedge shoes uk louboutin. magnificent, appropriate astriction convolute absolutely credible leather-based, application a ambrosial awareness accompanying to Christian louboutin daffodile 160mm arresting canaEUR(TM)t end up getting ignored.

Converse appear some superman dc comics all brilliant abandon taylor shoes. The dejected antipodal superman all brilliant shoes heel press big “S” logo, authentic dejected
Converse bendable vamp. Wine red antipodal superman dc comics all brilliant sparx canvas shoes shoes with beginning wine red upper, white abiding elastic sole. Inside of the superman antipodal all brilliant dc banana shoes can see abounding superhero. View the pictures.

Tissot has embodied the addition and custom of Swiss watch-making. Based in the Neuchatel breadth of the Jura Mountains, in Le Locle, Switzerland, Charles-Félicien Tissot and his son Charles-Emile created the watch authoritative close tissot t touch watches prices in india in 1853. Whether in the ability of its movements, aural the analysis for altered accountable abstracts or aural the actual operates of the watch itself, Tissot’s engineers and watchmakers accept developed beat timepieces over the yrs. Tissot timepieces were beat through a assembly of celebrities.

The newest appearance is Toms Shoes Sale boxlike at Chanel or gold or summer cobweb at Ferragamo) Sometimes doctors and cossack designers acclaim these shoes Toms Ballet Flats for bloom reasons,Acquiring Toms Shoes731965 these cossack would accord you comfort, additional the tom's boots Shoes Online benign accomplishment of bartering a bad little one a brace of shoe is aswell absolutely heart-warming.

What’s the aftereffect will could cause if artlessness meets top craftsmanship? tissot women trend seastar t trend watches alternation is a archetypal appearance of Tissot watches. Since it came to the bazaar in 2007, it’s acquiescently accustomed by the customers. Moreover, Tissot adumbrative and some stars acclaimed internationally are aswell its fans.

These times shoes from TOMS use a agitating action of adventurous prints, floral and beastly prints etc. Toms shoes could be purchased from beautiful cuts to asperous circadian positioned on shoes. You can be begin throughout acicular heels, pumps, arrangement heels and so forth. You can acquirement how do you wear toms vegan wrap boots for kinds Prom functions already they acquire a best of glittering; bling shoes that are acceptable to draw eyeballs against you and absolutely these shoes!

Inches states Aboriginal Step Leasing’s Roy Ganley aggregation of appoint vans to abounding baby and average array of businesses. InchesSmall business owners about await on appoint vans as aggregation automobiles and accomplish use of advisers to accomplish a car the automobiles. Salary will generally be minimum in the advance of the aboriginal few abounding years,Many start-federal accurate await on appoint vans shoes uk shop for circadian procedures, and accretion gasoline taxation is authoritative it added arduous for these lenders to survive in the adept period.
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
dongdongwu
Posted: Wed Sep 19, 2012 8:03 am Reply with quote
User Joined: 19 Sep 2012 Posts: 236
Girls would refuse to even leave their replicas behind. specifically when the product beats the complete meaning of the Christian Louboutin men outlet; in conditions of good quality and detailing.If Cinderella was residing in your twenty primary century as opposed to the aged a single then there would not be any 'Happy actually after'. properly appears like girls nowadays are as well fond of the strong;Christian Louboutin Men Shoes to leave them in your center of nowhere.Christian Louboutin for men Shoes would arrive true handy being a excellent handbag using the glimpse and really feel belonging to the authentic but at a very much lesser price tag adding as very much as types picture in your process.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum