Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3] 4 5

Author Topic: Lazy Newb Pack Installer for Linux  (Read 167421 times)

King Mir

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #30 on: December 17, 2013, 05:22:02 pm »

I can't make this work on my Ubuntu :(

I follow all of the screen prompts correctly but when done there is nothing in the directory I set up for DF :(
Did you do --skip-sha as I posted above? Did you read the output for other error messages?

obsidian razor

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #31 on: December 18, 2013, 08:36:05 am »

I get no error messages. When the installer is done there is nothing in the directory I have pointed it too.

I haven't tried those command lines though, gonna try now :)
Logged

obsidian razor

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #32 on: December 18, 2013, 09:02:26 am »

Using those commands when running the installer allowed me to get to the end of the installation, but now I get this error when trying to start it:

java.lang.IllegalStateException: File not found: df_linux/data/init/d_init.txt
   at nl.dricus.df.util.TextFileUtil.newFileInputStream(TextFileUtil.java:107)
   at nl.dricus.df.util.TextFileUtil.readTextFile(TextFileUtil.java:58)
   at nl.dricus.df.config.dao.GameConfigFileDao.load(GameConfigFileDao.java:93)
   at nl.dricus.df.config.dao.GameConfigFileDao.<init>(GameConfigFileDao.java:48)
   at nl.dricus.df.state.LNP.getDInit(LNP.java:154)
   at nl.dricus.df.action.factory.PropertyActionFactory.getDInit(PropertyActionFactory.java:135)
   at nl.dricus.df.action.factory.PropertyActionFactory.newPopulationCapAction(PropertyActionFactory.java:99)
   at nl.dricus.df.form.main.OptionsGroup.getPopulationCapButton(OptionsGroup.java:117)
   at nl.dricus.df.form.main.OptionsGroup.initComponents(OptionsGroup.java:163)
   at nl.dricus.df.form.main.OptionsGroup.<init>(OptionsGroup.java:48)
   at nl.dricus.df.form.main.MainForm.getOptionsGroup(MainForm.java:342)
   at nl.dricus.df.form.main.MainForm.getOptionsTab(MainForm.java:353)
   at nl.dricus.df.form.main.MainForm.getTabbedPane(MainForm.java:459)
   at nl.dricus.df.form.main.MainForm.initComponents(MainForm.java:505)
   at nl.dricus.df.form.main.MainForm.<init>(MainForm.java:105)
   at nl.dricus.df.LauncherApplication.showMainWindow(LauncherApplication.java:94)
   at nl.dricus.df.LauncherApplication.run(LauncherApplication.java:64)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
   at java.awt.EventQueue$3.run(EventQueue.java:694)
   at java.awt.EventQueue$3.run(EventQueue.java:692)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.io.FileNotFoundException: df_linux/data/init/d_init.txt (Permission denied)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(FileInputStream.java:138)
   at nl.dricus.df.util.TextFileUtil.newFileInputStream(TextFileUtil.java:105)
   ... 30 more
Logged

obsidian razor

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #33 on: December 18, 2013, 09:25:54 am »

Another update on my situation.

Using "sudo" I've been able to run the install till the end, but now I get this error:

downloads/df_34_11_linux.tar.bz2: OK
downloads/dfhack-0.34.11-r3-Linux.tar.gz: OK
downloads/lazy-newbpack-linux-0.5.3-SNAPSHOT-20130822-1652.tar.bz2: OK
downloads/Utility_Plugins_v0.36-Windows-0.34.11.r3.zip.zip: FAILED
downloads/soundSense_42_186.zip: OK
downloads/Phoebus_34_11v01.zip: OK
downloads/CLA_graphic_set_v15-STANDALONE.rar: OK
downloads/Ironhand16 upgrade 0.73.4.zip: OK
downloads/Mayday 34.11.zip: OK
downloads/[16x16] Obsidian (v.0.8).zip: OK
downloads/[16x16] Spacefox 34.11v1.0.zip: OK
downloads/JollyBastion34-10v5.zip: OK
downloads/Chromafort.zip: OK
downloads/DFAnnouncementFilter.zip: OK
downloads/Dwarf Therapist.pdf: OK
sha1sum: WARNING: 1 computed checksum did NOT match

I've tried deleting the file with the wrong checksum and running it again, but I get the exact same error.

What can I do?
Logged

xenofeel

  • Escaped Lunatic
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #34 on: December 23, 2013, 03:45:24 am »

Another update on my situation.

Using "sudo" I've been able to run the install till the end, but now I get this error:

downloads/df_34_11_linux.tar.bz2: OK
downloads/dfhack-0.34.11-r3-Linux.tar.gz: OK
downloads/lazy-newbpack-linux-0.5.3-SNAPSHOT-20130822-1652.tar.bz2: OK
downloads/Utility_Plugins_v0.36-Windows-0.34.11.r3.zip.zip: FAILED
downloads/soundSense_42_186.zip: OK
downloads/Phoebus_34_11v01.zip: OK
downloads/CLA_graphic_set_v15-STANDALONE.rar: OK
downloads/Ironhand16 upgrade 0.73.4.zip: OK
downloads/Mayday 34.11.zip: OK
downloads/[16x16] Obsidian (v.0.8).zip: OK
downloads/[16x16] Spacefox 34.11v1.0.zip: OK
downloads/JollyBastion34-10v5.zip: OK
downloads/Chromafort.zip: OK
downloads/DFAnnouncementFilter.zip: OK
downloads/Dwarf Therapist.pdf: OK
sha1sum: WARNING: 1 computed checksum did NOT match

I've tried deleting the file with the wrong checksum and running it again, but I get the exact same error.

What can I do?
Try run ./df-lnp-installer.sh with --skip-sha like this:
Code: [Select]
./df-lnp-installer.sh --skip-sha
Logged

obsidian razor

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #35 on: December 23, 2013, 01:24:15 pm »

Using those commands it installs, but it doesn't start after installation, this is the error message I get:

Quote
java.lang.IllegalStateException: File not found: df_linux/data/init/d_init.txt
   at nl.dricus.df.util.TextFileUtil.newFileInputStream(TextFileUtil.java:107)
   at nl.dricus.df.util.TextFileUtil.readTextFile(TextFileUtil.java:58)
   at nl.dricus.df.config.dao.GameConfigFileDao.load(GameConfigFileDao.java:93)
   at nl.dricus.df.config.dao.GameConfigFileDao.<init>(GameConfigFileDao.java:48)
   at nl.dricus.df.state.LNP.getDInit(LNP.java:154)
   at nl.dricus.df.action.factory.PropertyActionFactory.getDInit(PropertyActionFactory.java:135)
   at nl.dricus.df.action.factory.PropertyActionFactory.newPopulationCapAction(PropertyActionFactory.java:99)
   at nl.dricus.df.form.main.OptionsGroup.getPopulationCapButton(OptionsGroup.java:117)
   at nl.dricus.df.form.main.OptionsGroup.initComponents(OptionsGroup.java:163)
   at nl.dricus.df.form.main.OptionsGroup.<init>(OptionsGroup.java:48)
   at nl.dricus.df.form.main.MainForm.getOptionsGroup(MainForm.java:342)
   at nl.dricus.df.form.main.MainForm.getOptionsTab(MainForm.java:353)
   at nl.dricus.df.form.main.MainForm.getTabbedPane(MainForm.java:459)
   at nl.dricus.df.form.main.MainForm.initComponents(MainForm.java:505)
   at nl.dricus.df.form.main.MainForm.<init>(MainForm.java:105)
   at nl.dricus.df.LauncherApplication.showMainWindow(LauncherApplication.java:94)
   at nl.dricus.df.LauncherApplication.run(LauncherApplication.java:64)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
   at java.awt.EventQueue$3.run(EventQueue.java:694)
   at java.awt.EventQueue$3.run(EventQueue.java:692)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.io.FileNotFoundException: df_linux/data/init/d_init.txt (Permission denied)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(FileInputStream.java:138)
   at nl.dricus.df.util.TextFileUtil.newFileInputStream(TextFileUtil.java:105)
   ... 30 more
Logged

Tovical

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #36 on: January 04, 2014, 06:10:54 pm »

So... recently I was forced to make a switch to Linux. I moved to Ubuntu; to make a long story short, I'm using a 32-bit version and after going through github to install the LNP, dfhack seems to be unable to find something which I was able to verify does exist (plugin.so or somesuch) - I therefore took a look in stderr.log and found this:

Code: [Select]
Initializing Plugins.
/home/charles/bin/Dwarf Fortress/df_linux/libs/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/charles/bin/Dwarf Fortress/df_linux/hack/plugins/stocks.plug.so)
Can't load plugin /home/charles/bin/Dwarf Fortress/df_linux/hack/plugins/stocks.plug.so

I have tried researching this, and while there is a ton of information about various Linux things, there seems to be too much, and I'm having a lot of trouble figuring out what I need to do to fix this... The main issue is that the GLIB thing seems to be related to gcc (at least according to my attempts at researching the problem), but since I followed github's instructions to the letter, I have that.

Does anyone have any advice about this problem?
Logged

andrewd18

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #37 on: January 08, 2014, 01:41:54 pm »

Code: [Select]
Initializing Plugins.
/home/charles/bin/Dwarf Fortress/df_linux/libs/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/charles/bin/Dwarf Fortress/df_linux/hack/plugins/stocks.plug.so)
Can't load plugin /home/charles/bin/Dwarf Fortress/df_linux/hack/plugins/stocks.plug.so
Dwarf Fortress ships with a really, really old version of libc. Rename df_linux/libs/libstdc++.so.6 to df_linux/libs/libstdc++.so.6.old and try again.
Logged

andrewd18

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #38 on: January 08, 2014, 01:45:42 pm »

Using those commands it installs, but it doesn't start after installation, this is the error message I get:

Quote
java.lang.IllegalStateException: File not found: df_linux/data/init/d_init.txt
You are missing the d_init.txt file, which definitely means DF didn't install correctly. Can you please re-run the installer without using sudo, and give me the full output? Also, please post these issues to the df-lnp-installer page on github.

https://github.com/andrewd18/df-lnp-installer/issues
Logged

Tovical

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #39 on: January 08, 2014, 04:43:38 pm »

Code: [Select]
Initializing Plugins.
/home/charles/bin/Dwarf Fortress/df_linux/libs/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/charles/bin/Dwarf Fortress/df_linux/hack/plugins/stocks.plug.so)
Can't load plugin /home/charles/bin/Dwarf Fortress/df_linux/hack/plugins/stocks.plug.so
Dwarf Fortress ships with a really, really old version of libc. Rename df_linux/libs/libstdc++.so.6 to df_linux/libs/libstdc++.so.6.old and try again.

Okay, it seems to be working now. Thanks very much!
Logged

Abraxis

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #40 on: February 04, 2014, 01:36:27 am »

Thanks a lot for this, it's really such a load off getting all of this to run properly.  Installed on Mint 16 without any problems.

I do have one question though, where is the introduction interface thing located?  A "Lazy new pack" thing was placed in Applications>Games in the start menu thing, but it doesn't do anything when I click on it.  I can go into the LNP directory and run everything manually, but I can't seem to find that initial interface with all the options and whatnot on it.
Logged

andrewd18

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #41 on: February 10, 2014, 10:42:12 am »

Thanks a lot for this, it's really such a load off getting all of this to run properly.  Installed on Mint 16 without any problems.

I do have one question though, where is the introduction interface thing located?  A "Lazy new pack" thing was placed in Applications>Games in the start menu thing, but it doesn't do anything when I click on it.  I can go into the LNP directory and run everything manually, but I can't seem to find that initial interface with all the options and whatnot on it.
There should be a "startlnp" script living in your installation directory, next to the df_linux and LNP snapshot jar file. The link in your applications/games should auto-link to that. Perhaps it's linked properly but the script is failing silently?

Edit: By chance, did you install DF to a folder with a space in the name? Looking at some of the forked branches on my repo, there might be an issue where the desktop file can't handle a space in the folder name. Edit the ~/.local/share/applications/DF LNP.desktop and add quotes around the stuff after the Exec= command.
« Last Edit: February 10, 2014, 12:10:15 pm by andrewd18 »
Logged

RangerCado

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #42 on: April 21, 2014, 09:23:38 pm »

Been trying to get this to work for awhile, but I can't figure out where to save the file to when I run df-lnp-installer.sh in the terminal. Everything I try gives an error that crashes the terminal before I can see it. And just running it doesn't do anything.

I'm running Linux Mint for reference.
Logged
The best ship is the one where one of them is literally allergic to the other~
Quote from: NakaTeleeli
"A room ain't messy less you can't find nothin!"
[/quote]

andrewd18

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #43 on: April 22, 2014, 05:50:45 pm »

Been trying to get this to work for awhile, but I can't figure out where to save the file to when I run df-lnp-installer.sh in the terminal. Everything I try gives an error that crashes the terminal before I can see it. And just running it doesn't do anything.

I'm running Linux Mint for reference.
Rather than double-clicking the script from your file browser, you should open a terminal at that location and run it. For example, save it to your /home/username folder. Then, open a terminal (like gnome-terminal). Type "sh ./df-lnp-installer.sh" without the quotes, and voila, the script will run.

It's very likely the script will error because you're missing dependencies. Install those via Synaptic (or your preferred software installation method), then re-run the script. Repeat until it works. :)
Logged

rmblr

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Installer for Linux
« Reply #44 on: April 29, 2014, 10:00:50 am »

Andrew, what would you say to a refactoring of the codebase to be more modular, so that a GUI wizard/installer could be created that shows progress bars, etc. It would be a step forward for usability for those Linux users without console experience.

To be clear, I'm not suggesting you do this, rather if you would be amenable to the idea. I'd be happy to work on it. I'm asking because it would be a rather invasive change.
Logged
Pages: 1 2 [3] 4 5