-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newbie struggling with startup files #1355
Comments
Hi, under windows I assume you know how to create a new environment variable with the system panel. |
hi, thanks for the comment. It makes a little sense now, but i still got tons of doubts.
Now, how do I proceed? I am sorry for not being able to work it out by myself, but I have been trying for like 2-3 days, ig. So, need some help now. How do I "point towards" the path directory of the startup file? Also, a quick question, I am doing this thing on Ubuntu terminal, but using the GDL's official command line (CL). So, making changes on Ubuntu's terminal would make the difference in the GDL's CL, right? Also, just to clear things out, what does startup do? Again, sorry for asking so many questions and thank you! |
Hi again, |
Here's what I am talking about: https://imgur.com/a/7LMtXLY So, see, my issue is that while learning GDL, I encountered some (many actually) codes that used $.... to run a code. Now, that doesn't work in GDL command line but does in Ubuntu's. And, when I said I am doing that on Ubuntu's terminal, I mean this: But this thing does NOT work in the GDL CL (Command Line). So, if I were supposed to do that in GDL, how do I do? I doesn't work for me. Final question, is the startup thing not necessary? What's the purpose of that? |
Hey, If you want to run Windows GDL on WSL, then you need to set the path of the startup script as a POSIX path, not a Windows path. For example, instead of D:\Program Files\GDL\gnudatalanguage\gdl_startup.pro you need to specify it as /mnt/d/Program Files/GDL/gnudatalanguage/gdl_startup.pro and it would work. Of course this should only be applied to the WSL environments. |
So, since I have to do this on the Ubuntu terminal, would doing so be applied to the GDL command line as well? (or would it work for only Ubuntu's GDL?) Thank you so much, btw! |
May I ask if you are familiar with Bash? You can do this by using the 'export' command.
No I don't think the file is an absolute requirement. AFAIK the content of the file will be executed before you run any GDL codes. |
Also, one more thing, how do I download new libraries or dependencies and import into the GDL command file? Dependencies as mentioned in the readme guide of windows GDL download (eg, readline, zlib, GSL, etc.) |
OK I understand better. On such a Ubuntu environment I would just install gdl from the Ubuntu installer see https://packages.ubuntu.com/kinetic/gnudatalanguage All programs start somewhere by a command typed at the "terminal" or stored in command files. GDL starts with ' So if you really need to define GDL_DIR, GDL_STARTUP etc you need to do that in the .bashrc file, use the unix path style as said above ( Then 'gdl' will start GDL and there you can use all the GDL commands (look on the web , by example) |
BTW thanks for providing screenshots that helps a lot, wish more people would do that. |
Thank you SO much. That cleared all my doubts, thanks!! :D |
Please HELP! I don't know anything that's happening. I set up a startup file for GDL using: https://sourceforge.net/p/gnudatalanguage/discussion/338692/thread/0797cd04/#:~:text=2009%2D07%2D16-,(1)%20How%20do%20I%20direct%20GDL%20to%20look%20in%20certain%20directories,am%20a%20beginner%20with%20gdl%2C%20but%20I%20hope%20this%20helps%20you.,-dgalvan123%20%2D%202010
(refer to : [Noemi Pinilla-Alonso]'s comment)
and
http://www.physics.emory.edu/faculty/weeks/ken/SettingUpGDL.html
But I keep getting: -
` For basic information type HELP,/INFO
+/usr/share/gnudatalanguage/lib
https://github.com/gnudatalanguage/gdl
% Error opening startup file: D:\Program Files\GDL\gnudatalanguage\gdl_startup.pro
% Error opening file: startup`
What do I do? Please help. I searched a lot but just couldn't get done with it. Please help me set a default directory for libs, pro files, and stuff. I just want to start working and it just sucks so much!
Also, see I downloaded GDL for Windows via the packaged version (1.0.1) and also for Ubuntu (via WSL ubuntu). Now, the above thing was for ubuntu. So, how do I set up directory for the windows one? I can't seem to access the emacs .bashrc here. When I start its command line up, it shows:
GDL - GNU Data Language, Version 1.0.1
So, how do I fix it/add the startup file read?
Any help would be GREATLY appreciated!!!
Yeah, so one of my main questions is how to operate directories within GDL?
The text was updated successfully, but these errors were encountered: